From: Andy Allan Date: Wed, 6 Sep 2023 15:26:12 +0000 (+0100) Subject: Round the clickable map previews on the layer switcher X-Git-Tag: live~1196^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6fc0f764d564491be1b4d0a1e9b49c21865d1c61?hp=01eed9b96c47365c1e6517df6d21f5d8b9286f29 Round the clickable map previews on the layer switcher Most interactive elements on the site are rounded, so we can do the same for these map previews. --- diff --git a/app/assets/javascripts/leaflet.layers.js b/app/assets/javascripts/leaflet.layers.js index 020876c47..1aa3824b0 100644 --- a/app/assets/javascripts/leaflet.layers.js +++ b/app/assets/javascripts/leaflet.layers.js @@ -13,6 +13,7 @@ L.OSM.layers = function (options) { layers.forEach(function (layer) { var item = $("
  • ") + .attr("class", "rounded-3") .appendTo(baseLayers); if (map.hasLayer(layer)) {