From: Anton Khorev Date: Tue, 17 Oct 2023 12:19:37 +0000 (+0300) Subject: Don't pass placement: right to tooltip() X-Git-Tag: live~1003^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6b203c63fe6b8cf6f1abb75c21dc49cf9107a690?hp=dd905b5aa893918168c644045aa1b6069e95d48e Don't pass placement: right to tooltip() Bootstrap flips it on its own, see https://getbootstrap.com/docs/5.2/components/tooltips/#directions --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 783c4da8d..e45d28321 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -175,8 +175,7 @@ $(document).ready(function () { } } - var placement = $("html").attr("dir") === "rtl" ? "right" : "left"; - $(".leaflet-control .control-button").tooltip({ placement: placement, container: "body" }); + $(".leaflet-control .control-button").tooltip({ placement: "left", container: "body" }); var expiry = new Date(); expiry.setYear(expiry.getFullYear() + 10);