From 04ccf4b9998f2461ec0ee4c9c378b1074eee7416 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 18 Feb 2025 11:59:05 +0100 Subject: [PATCH] update --- web/components/DocSidebar.tsx | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/web/components/DocSidebar.tsx b/web/components/DocSidebar.tsx index b9c6b99..a1a0c82 100644 --- a/web/components/DocSidebar.tsx +++ b/web/components/DocSidebar.tsx @@ -67,7 +67,7 @@ export default function DocSidebar() { useEffect(() => { const handleResize = () => { - if (window.innerWidth >= 1024) { + if (window.innerWidth >= 768) { setIsMobileMenuOpen(false) } } @@ -126,30 +126,30 @@ export default function DocSidebar() { } } - return ( - <> -
- -
- - - ) + Documentation + {isMobileMenuOpen ? : } + + + + + +) } - -