From b5679e16dbd338731c5205bd71c0f5c4f344e6ed Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 17 Oct 2023 22:58:59 +0300 Subject: [PATCH] Disable text wrapping while measuring header width --- app/assets/javascripts/application.js | 2 ++ app/views/layouts/_header.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index af67244bc..0bfff869e 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -103,6 +103,8 @@ $(document).ready(function () { $("body").removeClass("compact-nav"); + $("header").removeClass("text-nowrap"); + updateHeader(); $(window).resize(updateHeader); diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index e272834be..55f37782d 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -1,4 +1,4 @@ -
+

<%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t("layouts.logo.alt_text"), :width => 30, :height => 30, :class => "logo" %> -- 2.39.5