Skip to content

Commit

Permalink
Build: (170b362) Merge pull request #2 from 0xsequence/fix-sidebar-hi…
Browse files Browse the repository at this point in the history
…ghlight

Fix sidebar highlight
  • Loading branch information
JamesLawton committed Jul 18, 2024
1 parent e5a4f08 commit 0e38d27
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions _lib/app/components/Sidebar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _lib/app/components/Sidebar.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions 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
2 changes: 1 addition & 1 deletion tsconfig.build.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 0e38d27

Please sign in to comment.