Skip to content

Commit daf7040

Browse files
Fix sidebar scroll jank by removing overflow-x-hidden
The overflow-x-hidden property was breaking position: sticky, causing JavaScript-based position toggling and layout shifts. Now uses clean CSS sticky positioning. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 9681fcc commit daf7040

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/src/app/docs/layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export default function DocsLayout({
1212
children,
1313
}: {
1414
children: React.ReactNode
15-
}) {
16-
const pathname = usePathname()
15+
}) { const pathname = usePathname()
1716
const [open, setOpen] = useState(false)
1817
const [showTopFade, setShowTopFade] = useState(false)
1918
const [showBottomFade, setShowBottomFade] = useState(false)
@@ -42,7 +41,7 @@ export default function DocsLayout({
4241

4342
return (
4443
<div className="pt-8">
45-
<div className="container flex md:space-x-8 overflow-x-hidden">
44+
<div className="container flex md:space-x-8">
4645
<div className="hidden lg:block w-64 shrink-0">
4746
<div className="w-64 sticky top-4 h-[calc(100vh-2rem)] z-40">
4847
{/* Dynamic gradient fade indicators */}

0 commit comments

Comments
 (0)