fix: make navbar links equal width
This commit is contained in:
@@ -28,7 +28,7 @@ const NavItem = ({ to, children }: { to: string; children: ReactNode }) => (
|
|||||||
to={to}
|
to={to}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
cn(
|
cn(
|
||||||
"rounded-lg px-3 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
"inline-flex w-20 items-center justify-center rounded-lg px-3 py-2 text-center text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||||
isActive
|
isActive
|
||||||
? "bg-secondary text-primary"
|
? "bg-secondary text-primary"
|
||||||
: "text-muted-foreground hover:bg-secondary hover:text-foreground",
|
: "text-muted-foreground hover:bg-secondary hover:text-foreground",
|
||||||
|
|||||||
Reference in New Issue
Block a user