From 81bb5574e045f831da7cb31970d9abcd0971431c Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 18 Feb 2025 12:16:57 +0100 Subject: [PATCH] update --- web/app/docs/layout.tsx | 20 +++++++-------- web/components/DocSidebar.tsx | 47 +++++++++++++++++++---------------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/web/app/docs/layout.tsx b/web/app/docs/layout.tsx index 6471b0a..678fdb2 100644 --- a/web/app/docs/layout.tsx +++ b/web/app/docs/layout.tsx @@ -1,17 +1,15 @@ -import type { ReactNode } from "react" +import type React from "react" import DocSidebar from "@/components/DocSidebar" +import Footer from "@/components/footer" -interface LayoutProps { - children: ReactNode -} - -export default function DocsLayout({ children }: LayoutProps) { +export default function DocsLayout({ children }: { children: React.ReactNode }) { return ( -
- -
-
{children}
-
+
+
+ +
{children}
+
+
) } diff --git a/web/components/DocSidebar.tsx b/web/components/DocSidebar.tsx index 5516cc4..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,27 +126,30 @@ export default function DocSidebar() { } } - return ( - <> -
- -
- - - ) + Documentation + {isMobileMenuOpen ? : } + +
+ + + +) } +