]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5331 from AntonKhorev/trace-badges-text-bg
authorAndy Allan <git@gravitystorm.co.uk>
Fri, 15 Nov 2024 16:14:02 +0000 (16:14 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 16:14:02 +0000 (16:14 +0000)
Set colors for trace visibility badges using .text-bg-*

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'>")