Skip to content

Commit 7051a92

Browse files
committed
fix: nav bar layout - reduce gaps and improve responsive
- Reduced gaps in nav-left, nav-center, nav-right - Removed absolute positioning on nav-center - Added flex-wrap and flex-shrink for responsive behavior
1 parent 57b419d commit 7051a92

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/index.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,25 @@ body {
5151
.nav-left {
5252
display: flex;
5353
align-items: center;
54-
gap: 1rem;
54+
gap: 0.5rem;
55+
flex-shrink: 0;
5556
}
5657

5758
.nav-center {
5859
display: flex;
5960
align-items: center;
60-
gap: 0.5rem;
61-
position: absolute;
62-
left: 50%;
63-
transform: translateX(-50%);
61+
gap: 0.25rem;
62+
flex-wrap: wrap;
63+
justify-content: center;
64+
flex: 1;
65+
margin: 0 0.5rem;
6466
}
6567

6668
.nav-right {
6769
display: flex;
6870
align-items: center;
69-
gap: 1rem;
71+
gap: 0.375rem;
72+
flex-shrink: 0;
7073
}
7174

7275
/* Tab Buttons */

0 commit comments

Comments
 (0)