Skip to content

Commit a2eb0c1

Browse files
fix(nav): wrap header links on narrow viewports
The six-item header stayed on one nowrap flex row, so a 390px viewport expanded to ~510px (Projects at 436px, Wiki at 510px). Allow wrapping and keep each link intact so mobile pages no longer scroll sideways. Git-Session-Id: 903e
1 parent 3ff1613 commit a2eb0c1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

assets/css/tailwind.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@
4848
@apply bg-surface border-b border-border shadow-sm;
4949

5050
nav {
51-
@apply container mx-auto px-4 py-4 flex gap-6;
51+
/* Wrap: six nowrap links overflow a 390px viewport to ~510px. */
52+
@apply container mx-auto px-4 py-4 flex flex-wrap items-center gap-x-4 gap-y-2 sm:gap-6;
5253

5354
a {
54-
@apply text-text no-underline px-2 py-1 hover:text-primary transition-colors;
55+
@apply text-text no-underline px-2 py-1 hover:text-primary transition-colors whitespace-nowrap;
5556
}
5657
}
5758
}

0 commit comments

Comments
 (0)