From 7a8254a9b427a9b4546df936c3f5ff7f3a769d50 Mon Sep 17 00:00:00 2001 From: Elad Bernard Haviv Date: Sat, 5 Aug 2023 11:48:00 +0300 Subject: [PATCH] changed type selection to button + dropdown menu --- index.css | 32 ++++++++++++++++++++++++++++++++ index.html | 11 ++++++++--- modules/ui/markers-overview.js | 29 +++++++++++++++++++++-------- 3 files changed, 61 insertions(+), 11 deletions(-) diff --git a/index.css b/index.css index 01b41f67..91c6c6ba 100644 --- a/index.css +++ b/index.css @@ -2357,6 +2357,38 @@ svg.button { opacity: 0.8; } +#markerTypeSelector { + font-size: 0.85em; +} + +#markerTypeSelectorWrapper { + position: relative; +} + +#markerTypeSelectMenu { + display: none; +} +#markerTypeSelectMenu.visible { + display: block; + position: absolute; + height: 250px; + width: 170px; + overflow-y: scroll; + background: inherit; + bottom: 100%; + left: 0; + background: white; +} +#markerTypeSelectMenu > button { + display: block; + width: 100%; + border: 1px solid #ddd; + margin-bottom: 1px; +} +#markerTypeSelectMenu > button:hover { + background: #ccc; +} + @media print { div, canvas { diff --git a/index.html b/index.html index 189dde69..bd6bee84 100644 --- a/index.html +++ b/index.html @@ -5509,9 +5509,14 @@
- + + + +
+