Disable text wrapping while measuring header width

This commit is contained in:
Anton Khorev 2023-10-17 22:58:59 +03:00
parent 693fe3b587
commit b5679e16db
2 changed files with 3 additions and 1 deletions

View file

@ -103,6 +103,8 @@ $(document).ready(function () {
$("body").removeClass("compact-nav");
$("header").removeClass("text-nowrap");
updateHeader();
$(window).resize(updateHeader);

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