From b7534ac94c3570339bf85e903f7fa9fde155a8c8 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 18 Feb 2025 11:50:54 +0100 Subject: [PATCH] update --- web/app/docs/layout.tsx | 22 ++++++++-------- web/components/DocSidebar.tsx | 48 +++++++++++++++++------------------ 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/web/app/docs/layout.tsx b/web/app/docs/layout.tsx index 678fdb2..0037746 100644 --- a/web/app/docs/layout.tsx +++ b/web/app/docs/layout.tsx @@ -1,15 +1,17 @@ -import type React from "react" -import DocSidebar from "@/components/DocSidebar" -import Footer from "@/components/footer" +import type { ReactNode } from "react" +import DocSidebar from "@/components/doc-sidebar" -export default function DocsLayout({ children }: { children: React.ReactNode }) { +interface LayoutProps { + children: ReactNode +} + +export default function DocsLayout({ children }: LayoutProps) { return ( -
-
- -
{children}
-
-
+
+ +
+
{children}
+
) } diff --git a/web/components/DocSidebar.tsx b/web/components/DocSidebar.tsx index a1a0c82..b9c6b99 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 >= 768) { + if (window.innerWidth >= 1024) { setIsMobileMenuOpen(false) } } @@ -126,30 +126,30 @@ export default function DocSidebar() { } } -return ( - <> - -
- +
+
- - - -) +

Documentation

+ + + + ) } + +