From a511dc0ef101597a9383c4ad602499d16a0c7fed Mon Sep 17 00:00:00 2001 From: Josh Derocher-Vlk Date: Mon, 5 May 2025 20:56:33 +0200 Subject: [PATCH 01/15] create sub nav for docs --- src/components/Navigation.res | 180 ++++++++++++++++++---------------- 1 file changed, 94 insertions(+), 86 deletions(-) diff --git a/src/components/Navigation.res b/src/components/Navigation.res index d75624361..8d081532a 100644 --- a/src/components/Navigation.res +++ b/src/components/Navigation.res @@ -73,98 +73,106 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) = let fixedNav = fixed ? "fixed top-0" : "relative" <> - + + } From bff50b5601a63bcfa84ee174f33ff60ea4255eb9 Mon Sep 17 00:00:00 2001 From: Josh Derocher-Vlk Date: Tue, 6 May 2025 12:39:54 +0200 Subject: [PATCH 02/15] basics in place, not done at all --- src/components/Navigation.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Navigation.res b/src/components/Navigation.res index 8d081532a..a9bb95bd3 100644 --- a/src/components/Navigation.res +++ b/src/components/Navigation.res @@ -156,7 +156,7 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) = - + // This is a subnav for documentation pages + {isDocRoute(~route) + ? + : React.null} } diff --git a/src/layouts/SidebarLayout.res b/src/layouts/SidebarLayout.res index bafdd84ca..b13d6148a 100644 --- a/src/layouts/SidebarLayout.res +++ b/src/layouts/SidebarLayout.res @@ -138,10 +138,10 @@ module Sidebar = { id="sidebar" className={( isOpen ? "fixed w-full left-0 h-full z-20 min-w-320" : "hidden " - ) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white"}> + ) ++ " overflow-x-hidden md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white"}>