]> git.openstreetmap.org Git - rails.git/commitdiff
Use multiple columns for map controls if they don't fit vertically
authorAnton Khorev <tony29@yandex.ru>
Wed, 2 Aug 2023 17:58:33 +0000 (20:58 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 2 Aug 2023 18:00:36 +0000 (21:00 +0300)
app/assets/stylesheets/common.scss

index d74ece45a66a2b6f323f1b07acc452aa7ed0b483..5f4c9777dacf20759d96a054b8e7b3b48af4204d 100644 (file)
@@ -351,6 +351,15 @@ body.small-nav {
 
 /* Rules for Leaflet maps */
 
+.leaflet-top.leaflet-right,
+.leaflet-top.leaflet-left {
+  height: 100%;
+  column-gap: 10px;
+  display: flex;
+  flex-direction: column;
+  flex-wrap: wrap-reverse;
+}
+
 .leaflet-control .control-button {
   display: block;
   height: 40px;