]> git.openstreetmap.org Git - rails.git/commitdiff
Disable text wrapping while measuring header width
authorAnton Khorev <tony29@yandex.ru>
Tue, 17 Oct 2023 19:58:59 +0000 (22:58 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 17 Nov 2023 07:27:38 +0000 (10:27 +0300)
app/assets/javascripts/application.js
app/views/layouts/_header.html.erb

index af67244bcb706604ed139f4758bb3bef504970b3..0bfff869ebcc87186c1aec12c4a0ff75949a923f 100644 (file)
@@ -103,6 +103,8 @@ $(document).ready(function () {
 
     $("body").removeClass("compact-nav");
 
+    $("header").removeClass("text-nowrap");
+
     updateHeader();
 
     $(window).resize(updateHeader);
index e272834be5fa6ecb1ac4a559262c17e6018d4ca0..55f37782da4fa8ce6ec8aa9c7b4572b45ae7aa5c 100644 (file)
@@ -1,4 +1,4 @@
-<header class="d-flex closed">
+<header class="d-flex text-nowrap closed">
   <h1 class="m-0 fw-semibold">
     <a href="<%= root_path %>" class="text-black text-decoration-none geolink">
       <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t("layouts.logo.alt_text"), :width => 30, :height => 30, :class => "logo" %>