From f5773825ba1f57baeb1c0a9a22e3659bbd2f10c8 Mon Sep 17 00:00:00 2001 From: Darius Cepulis Date: Wed, 11 Feb 2026 10:47:16 -0600 Subject: [PATCH] fix(site): show docs sidebar on tablet closes #509 --- site/src/components/NavBar/MobileNav.tsx | 70 +++++++++++-------- site/src/components/NavBar/NavBar.astro | 6 +- site/src/components/docs/Selectors.tsx | 7 +- site/src/layouts/Docs.astro | 8 +-- .../framework/[framework]/[...slug].astro | 2 +- 5 files changed, 51 insertions(+), 42 deletions(-) diff --git a/site/src/components/NavBar/MobileNav.tsx b/site/src/components/NavBar/MobileNav.tsx index a2d92930..9718f63a 100644 --- a/site/src/components/NavBar/MobileNav.tsx +++ b/site/src/components/NavBar/MobileNav.tsx @@ -25,7 +25,7 @@ export default function MobileNav({ navLinks, currentPath, dark = false, childre {/* Trigger button - hamburger menu */} @@ -68,38 +68,48 @@ export default function MobileNav({ navLinks, currentPath, dark = false, childre - {/* Astro makes it hard to know if we have children, so, we use -mt-px to hide the border-b if we don't */} -
- {children} -
+
+ {/* Astro makes it hard to know if we have children, so, we use -mt-px to hide the border-b if we don't */} +
+ {children} +
- {/* Navigation links */} - +
diff --git a/site/src/components/NavBar/NavBar.astro b/site/src/components/NavBar/NavBar.astro index 967e9720..b1b0be2a 100644 --- a/site/src/components/NavBar/NavBar.astro +++ b/site/src/components/NavBar/NavBar.astro @@ -50,7 +50,7 @@ const { class: className, dark = false } = Astro.props; {/* Desktop nav links */} -