File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ export function Header() {
284284 } }
285285 >
286286 < NavLink href = { link . href } name = { link . name } />
287- { pathname === link . href && (
287+ { pathname . includes ( link . href ) && (
288288 < div className = "bg-violet-700 h-1 left-0.5 right-0.5 rounded-full absolute -bottom-0.5" />
289289 ) }
290290 </ li >
@@ -510,7 +510,9 @@ function NavLink(props: {
510510 < Link
511511 className = { clsx (
512512 "font-medium text-base transition-colors hover:text-foreground xl:text-sm" ,
513- pathname === props . href ? "text-foreground" : "text-muted-foreground " ,
513+ pathname . includes ( props . href )
514+ ? "text-foreground"
515+ : "text-muted-foreground" ,
514516 props . icon ? "flex flex-row gap-3" : "" ,
515517 ) }
516518 href = { props . href }
@@ -519,7 +521,7 @@ function NavLink(props: {
519521 >
520522 { props . icon ? (
521523 < >
522- < props . icon className = "size-6 text-muted-foreground " />
524+ < props . icon className = "size-6" />
523525 < span className = "my-auto" > { props . name } </ span >
524526 </ >
525527 ) : (
You can’t perform that action at this time.
0 commit comments