Skip to content

Commit e99ab08

Browse files
committed
fix(navbar): prevent logo from breaking on medium screens
Added flex-shrink: 0 to prevent logo compression Set min-width: fit-content to ensure logo has adequate space Added white-space: nowrap to prevent title text wrapping Improved navbar inner flex layout with gap spacing
1 parent 035a265 commit e99ab08

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,27 @@ body {
523523
/* Logo and brand adjustments */
524524
.navbar__brand {
525525
margin-right: 1.5rem !important;
526+
flex-shrink: 0; /* Prevent logo from shrinking */
527+
min-width: fit-content; /* Ensure logo has space */
526528
}
527529

528530
.navbar__logo {
529531
height: 32px !important;
532+
width: auto !important; /* Maintain aspect ratio */
533+
max-width: none !important; /* Remove any max-width constraints */
530534
}
531535

532536
.navbar__title {
533537
font-size: 1rem !important;
538+
white-space: nowrap; /* Prevent text wrapping */
539+
}
540+
541+
/* Ensure navbar inner has proper flex */
542+
.navbar__inner {
543+
display: flex;
544+
justify-content: space-between;
545+
align-items: center;
546+
gap: 0.5rem; /* Add gap between items */
534547
}
535548

536549
/* Ensure sidebar toggle is always visible */

0 commit comments

Comments
 (0)