]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5332 from AntonKhorev/layer-preview-backgrounds
authorAndy Allan <git@gravitystorm.co.uk>
Fri, 15 Nov 2024 16:11:38 +0000 (16:11 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 16:11:38 +0000 (16:11 +0000)
Set background for layer buttons to secondary body color

app/assets/javascripts/leaflet.layers.js

index 82efab506c80f4d7dbd27f465f04928d383664f9..dc692a4a5d500f0ffbba724a8309769431e7efe8 100644 (file)
@@ -14,7 +14,7 @@ L.OSM.layers = function (options) {
       var buttonContainer = $("<div class='position-relative'>")
         .appendTo(baseSection);
 
-      var mapContainer = $("<div class='position-absolute top-0 start-0 bottom-0 end-0 z-0'>")
+      var mapContainer = $("<div class='position-absolute top-0 start-0 bottom-0 end-0 z-0 bg-body-secondary'>")
         .appendTo(buttonContainer);
 
       var input = $("<input type='radio' class='btn-check' name='layer'>")