Skip to content

Commit 50f7dfb

Browse files
committed
fixed spacing
1 parent b5e2f09 commit 50f7dfb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/Navbar.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Navbar() {
3030
<HStack
3131
px={{ base: 4, sm: 8 }}
3232
py={{ base: 3, sm: 4 }}
33-
spacing={{ base: 3, sm: 6 }} // consistent spacing between icons
33+
gap={{ base: 3, sm: 6 }} // consistent spacing between icons
3434
bg="white"
3535
borderRadius="999px"
3636
boxShadow="0 18px 40px rgba(0,0,0,0.18)"
@@ -42,7 +42,7 @@ export default function Navbar() {
4242
return (
4343
<Link key={item.href} href={item.href} style={{ textDecoration: "none" }}>
4444
<VStack
45-
spacing={{ base: 0.5, sm: 1 }} // internal spacing
45+
gap={{ base: 0.5, sm: 1 }} // internal spacing
4646
px={{ base: 2, sm: 3 }} // consistent padding per tab
4747
py={{ base: 1, sm: 1.5 }}
4848
minW={{ base: "64px", sm: "72px" }} // consistent width per tab
@@ -56,7 +56,9 @@ export default function Navbar() {
5656
color={isActive ? "#304C89" : "gray.800"}
5757
lineHeight="1" // prevent vertical fidgeting
5858
textAlign="center"
59-
noOfLines={1} // prevent wrap changing widths
59+
whiteSpace="nowrap" // prevent wrap changing widths
60+
overflow="hidden" // prevent wrap changing widths
61+
textOverflow="ellipsis" // prevent wrap changing widths
6062
maxW={{ base: "64px", sm: "72px" }}
6163
>
6264
{item.label}

0 commit comments

Comments
 (0)