Skip to content

Commit

Permalink
fix(website): update navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Jan 31, 2024
1 parent c5e02b0 commit cc54e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/just-navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function JustNavigation({ children }: React.PropsWithChildren<{}>
to={path}
target={type === 'external' ? '_blank' : undefined}
className={clsx('hidden items-center gap-1 px-4 py-2 rounded-full hover:text-[var(--color-primary)', {
'text-[var(--color-primary)]': location.pathname.startsWith(`/${path}`),
'text-[var(--color-primary)]': location.pathname.startsWith(`${path}`),
'xs:flex': type !== 'external',
'sm:flex': type === 'external',
})}
Expand Down

0 comments on commit cc54e4f

Please sign in to comment.