From d019a260c0cde8e1e7bf2af805783e9c1cc9541a Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 6 Sep 2024 16:29:40 +0200 Subject: [PATCH] fix: move bottom controls below panels fix #2103 --- umap/static/umap/map.css | 4 ++-- umap/static/umap/vars.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/map.css b/umap/static/umap/map.css index 365fd903b..ef522fe8a 100644 --- a/umap/static/umap/map.css +++ b/umap/static/umap/map.css @@ -1382,8 +1382,8 @@ span.popup-icon { .leaflet-container .leaflet-control-zoom { margin-inline-start: 10px; } -.leaflet-top { - z-index: calc(var(--zindex-panels) - 1); +.leaflet-top, .leaflet-bottom { + z-index: var(--zindex-controls); } .leaflet-popup-content { min-width: 200px; diff --git a/umap/static/umap/vars.css b/umap/static/umap/vars.css index b8d3dc255..8c387c3c3 100644 --- a/umap/static/umap/vars.css +++ b/umap/static/umap/vars.css @@ -48,6 +48,7 @@ --zindex-icon-active: 450; --zindex-tooltip: 445; --zindex-panels: 440; + --zindex-controls: 430; --zindex-dragover: 410; --block-shadow: 0 1px 7px var(--color-mediumGray);