Skip to content

Commit

Permalink
Build: (cab7046) Merge pull request #4 from 0xsequence/revert-highlight
Browse files Browse the repository at this point in the history
fixed highlighting issue
  • Loading branch information
JamesLawton committed Jul 19, 2024
1 parent 0e38d27 commit 114d859
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 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: 5 additions & 3 deletions app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,11 @@ function SidebarItem(props: {
) : (
<div
className={clsx(
item.items && checkSectionTitleActive(item.items, pathname)
? styles.sectionTitleActive
: styles.sectionTitle,
depth === 0
? item.items && checkSectionTitleActive(item.items, pathname)
? styles.sectionTitleActive
: styles.sectionTitle
: styles.item,
)}
>
{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 114d859

Please sign in to comment.