Skip to content

Commit

Permalink
Merge pull request #2 from 0xsequence/fix-sidebar-highlight
Browse files Browse the repository at this point in the history
Fix sidebar highlight
  • Loading branch information
JamesLawton authored Jul 18, 2024
2 parents a851930 + 9ca725f commit 170b362
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,9 @@ function SidebarItem(props: {
) : (
<div
className={clsx(
depth === 0
? item.items && checkSectionTitleActive(item.items, pathname)
? styles.sectionTitleActive
: styles.sectionTitle
: styles.item,
item.items && checkSectionTitleActive(item.items, pathname)
? styles.sectionTitleActive
: styles.sectionTitle,
)}
>
{item.items && !checkSectionTitleActive(item.items, pathname) && collapsed ? (
Expand Down

0 comments on commit 170b362

Please sign in to comment.