Revert "Disconnect sidebar scroll behaviors (#5778)"

This reverts commit 1926e48758.
This commit is contained in:
dan
2023-03-20 23:20:08 +00:00
committed by Dan Abramov
parent 8eeff10f77
commit 89f361a3c5
2 changed files with 3 additions and 14 deletions

View File

@@ -30,15 +30,8 @@ export default function SidebarNav({
}
return (
<div
className={cn(
'sticky top-0 lg:bottom-0 lg:h-[calc(100vh-4rem)] flex flex-col'
)}>
<div
className="overflow-y-scroll no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark"
style={{
overscrollBehavior: 'contain',
}}>
<div className={cn('sticky top-0 lg:bottom-0 lg:h-screen flex flex-col')}>
<div className="overflow-y-scroll no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark">
<aside
className={cn(
`lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-xs z-10 hidden lg:block`

View File

@@ -19,11 +19,7 @@ export function Toc({headings}: {headings: Toc}) {
On this page
</h2>
)}
<div
className="h-full overflow-y-auto pl-4 max-h-[calc(100vh-7.5rem)]"
style={{
overscrollBehavior: 'contain',
}}>
<div className="h-full overflow-y-auto pl-4 max-h-[calc(100vh-7.5rem)]">
<ul className="space-y-2 pb-16">
{headings.length > 0 &&
headings.map((h, i) => {