]> git.openstreetmap.org Git - rails.git/commitdiff
Remove top margins from close buttons
authorAnton Khorev <tony29@yandex.ru>
Fri, 2 Sep 2022 14:00:01 +0000 (17:00 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 2 Sep 2022 14:02:46 +0000 (17:02 +0300)
app/assets/javascripts/index/browse.js
app/assets/javascripts/index/directions.js
app/assets/javascripts/leaflet.sidebar-pane.js
app/views/application/_sidebar_header.html.erb

index 61319f7b4f00be5660f385b3d9335fc7a4925af1..cf5b08ea6fdf02d0ff87a832f09718870fe7956c 100644 (file)
@@ -54,7 +54,7 @@ OSM.initializeBrowse = function (map) {
             $("<h2>")
               .text(I18n.t("browse.start_rjs.load_data"))),
           $("<div>").append(
-            $("<button type='button' class='btn-close mt-1'>")
+            $("<button type='button' class='btn-close'>")
               .click(cancel))),
         $("<div>").append(
           $("<p class='alert alert-warning'></p>")
index c5bd3194052bf8e9e67ed980a7580313d81288e9..58370e9e3282b196cae9df787e162ffd9b8f6ae7 100644 (file)
@@ -265,7 +265,7 @@ OSM.Directions = function (map) {
       }
 
       var turnByTurnTable = $("<table class='mb-3'>");
-      var directionsCloseButton = $("<button type='button' class='btn-close mt-1'>");
+      var directionsCloseButton = $("<button type='button' class='btn-close'>");
 
       $("#sidebar_content")
         .empty()
index 8403c7bc38c4d30696d3d280b0b7cfc94b709f7c..ff6ee8d8b14ab896ab4b500c732b2ce00748d031 100644 (file)
@@ -26,7 +26,7 @@ L.OSM.sidebarPane = function (options, uiClass, buttonTitle, paneTitle) {
         .append($("<h4>")
           .text(I18n.t(paneTitle))))
       .append($("<div>")
-        .append($("<button type='button' class='btn-close mt-1'>")
+        .append($("<button type='button' class='btn-close'>")
           .attr("aria-label", I18n.t("javascripts.close"))
           .bind("click", toggle)));
 
index 87d0b8955ba69adab3f7bc3373ed0e818aa33f55..2df7518721a1558a74f129103b6f20eb82c9e7a4 100644 (file)
@@ -3,6 +3,6 @@
     <h2><%= title %></h2>
   </div>
   <div>
-    <a class="geolink d-block btn-close mt-1" href="<%= root_path %>"></a>
+    <a class="geolink d-block btn-close" href="<%= root_path %>"></a>
   </div>
 </div>