fix: No reserving space in sidebar for overflow (#2807)

* fix: No reserving space in sidebar for overflow
closes #2486

Co-authored-by: Charles Harries <charles@harries.me>
This commit is contained in:
Tom Moor
2021-11-30 05:56:04 -08:00
committed by GitHub
parent e2841aebcd
commit d13254b543
5 changed files with 42 additions and 8 deletions

View File

@@ -250,9 +250,8 @@ function DocumentLink(
/>
</>
}
// @ts-expect-error ts-migrate(7006) FIXME: Parameter 'match' implicitly has an 'any' type.
isActive={(match, location) =>
match && location.search !== "?starred"
!!match && location.search !== "?starred"
}
isActiveDrop={isOverReparent && canDropToReparent}
depth={depth}