fix: force navbar to one row on mobile (flex-wrap: nowrap)

The actual root cause: Bootstrap's .navbar defaults to flex-wrap: wrap,
which lets the brand and the controls drop to separate rows when the
total just barely overflows. Adding flex-wrap: nowrap on .navbar and
its .container-fluid (which inherits flex-wrap) keeps everything on
one row. Brand also gets min-width: 0 + overflow: hidden +
text-overflow: ellipsis so it truncates gracefully if there's
genuinely no room (instead of forcing overflow).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-04-22 19:55:23 +02:00
parent 14df7ead4d
commit 10addba35f

View File

@@ -557,9 +557,19 @@ main {
gap: 0.25rem !important;
}
/* Navbar: Shrink brand title so all controls fit on one row */
/* Navbar: Force one-row layout (Bootstrap default is flex-wrap: wrap) */
.navbar,
.navbar > .container-fluid {
flex-wrap: nowrap !important;
}
/* Navbar: Shrink brand title and let it truncate if needed */
.navbar-brand.h1 {
font-size: 1.25rem;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 0.5rem;
}
/* Navbar: Channel selector on mobile */