]> git.openstreetmap.org Git - rails.git/commitdiff
Don't pass placement: right to tooltip()
authorAnton Khorev <tony29@yandex.ru>
Tue, 17 Oct 2023 12:19:37 +0000 (15:19 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 25 Oct 2023 12:48:53 +0000 (15:48 +0300)
Bootstrap flips it on its own, see https://getbootstrap.com/docs/5.2/components/tooltips/#directions

app/assets/javascripts/index.js

index 783c4da8d2597fdac9ecff064087155eb7836e0f..e45d28321c859c52ff06a50a2893cec8e35f0920 100644 (file)
@@ -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);
 
   var expiry = new Date();
   expiry.setYear(expiry.getFullYear() + 10);