Skip to content

Commit 917df21

Browse files
Add container ref and sticky top constant for docs sidebar
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 2198226 commit 917df21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/src/app/docs/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export default function DocsLayout({
1717
const [showTopFade, setShowTopFade] = useState(false)
1818
const [showBottomFade, setShowBottomFade] = useState(false)
1919
const sidebarRef = useRef<HTMLDivElement>(null)
20+
const containerRef = useRef<HTMLDivElement>(null)
21+
const stickyTop = 64 // navbar height
2022

2123
// Handle sidebar scroll for dynamic fade effects
2224
useEffect(() => {

0 commit comments

Comments
 (0)