From 10addba35fd2b7f978224c256ea2a61623ef413d Mon Sep 17 00:00:00 2001 From: MarekWo Date: Wed, 22 Apr 2026 19:55:23 +0200 Subject: [PATCH] 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 --- app/static/css/style.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index 67bddf6..be874c1 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -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 */