Remove top margins from close buttons

This commit is contained in:
Anton Khorev 2022-09-02 17:00:01 +03:00
parent 139ccef2dd
commit fb75f447d7
4 changed files with 4 additions and 4 deletions

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

View 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()

View 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)));

View 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>