mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-02 03:22:40 +02:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user