diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 4f86665..bb9fa9f 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -1,4 +1,4 @@ -import { useEffect } from 'react' +import { useEffect, useRef } from 'react' import { Link, useRouterState } from '@tanstack/react-router' import { Monitor, @@ -73,6 +73,8 @@ export function Sidebar() { return () => document.removeEventListener('keydown', handleKeyDown) }, [mobileSidebarOpen, setMobileSidebarOpen]) + const navRef = useRef(null) + // Keyboard toggle: [ key collapses/expands sidebar useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { @@ -223,7 +225,7 @@ export function Sidebar() { {/* Navigation */} -