mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:14:59 +00:00
Revert "Disconnect sidebar scroll behaviors (#5778)"
This reverts commit 1926e48758.
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user