Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI fix: decreased z-index(2->1) of map controls to resolve overlay issue (#1851)

Sakib Mahmuda759b2d21e60
diff --git a/ui/component/or-map/src/style.ts b/ui/component/or-map/src/style.ts
index f20890ae6..7f2f9534e 100644
--- a/ui/component/or-map/src/style.ts
+++ b/ui/component/or-map/src/style.ts
@@ -65,6 +65,11 @@ export const style = css`
.maplibregl-ctrl-geocoder--input {
width: calc(100% - 20px)
}
+
+ /* Prevents overflow from elements outside the map component (like menu overlays). See #1844 */
+ .maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right {
+ z-index: 1;
+ }
.leaflet-marker-icon, .maplibregl-marker, .mapboxgl-marker {
pointer-events: none !important;
}