Skip to content

Commit 90d45e8

Browse files
kutcodeclaude
andcommitted
Fix mobile nav dropdown to use proper overlay positioning
The mobile hamburger menu was overlapping page content because it used flex-wrap. Switch to absolute positioning with solid background and box-shadow so the dropdown appears as a clean overlay. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent a3b35f4 commit 90d45e8

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

frontend/src/app/globals.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ a:hover {
116116
position: sticky;
117117
top: 0;
118118
z-index: 1000;
119+
isolation: isolate;
119120
}
120121

121122
.navbar-brand {
@@ -1105,7 +1106,7 @@ a:hover {
11051106
@media (max-width: 768px) {
11061107
.navbar {
11071108
padding: 0 1rem;
1108-
flex-wrap: wrap;
1109+
position: relative;
11091110
}
11101111

11111112
.navbar-toggle {
@@ -1114,18 +1115,25 @@ a:hover {
11141115

11151116
.navbar-links {
11161117
display: none;
1117-
width: 100%;
1118+
position: absolute;
1119+
top: 100%;
1120+
left: 0;
1121+
right: 0;
11181122
flex-direction: column;
1119-
padding: 0.75rem 0;
1123+
padding: 0.5rem 1rem 1rem;
11201124
gap: 0.15rem;
1125+
background: var(--bg-card);
1126+
border-bottom: 1px solid var(--border);
1127+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
1128+
z-index: 999;
11211129
}
11221130

11231131
.navbar-links.open {
11241132
display: flex;
11251133
}
11261134

11271135
.navbar-links a {
1128-
padding: 0.6rem 0.75rem;
1136+
padding: 0.7rem 0.75rem;
11291137
border-radius: var(--radius-sm);
11301138
}
11311139

0 commit comments

Comments
 (0)