]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5333 from AntonKhorev/auth-buttons-same-as-preferred
authorAndy Allan <git@gravitystorm.co.uk>
Fri, 15 Nov 2024 16:15:05 +0000 (16:15 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 16:15:05 +0000 (16:15 +0000)
Style small auth buttons similarly to preferred auth buttons

app/assets/javascripts/leaflet.layers.js
app/views/traces/_trace.html.erb

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'>")
index f60eea7f1cbe22834e631359484b592f6cddb0a7..992f16199ac38a5044fa8df507b8dfc27b29e6c4 100644 (file)
@@ -27,7 +27,7 @@
                          when "public", "identifiable" then "success"
                          else "danger"
                          end %>
-        <span class="badge bg-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
+        <span class="badge text-bg-<%= badge_class %>"><%= t(".#{trace.visibility}") %></span>
       </li>
     </ul>
     <p class="text-body-secondary mb-0">