From 17f30c4ca265a4caa340bf10bc95fb9714501811 Mon Sep 17 00:00:00 2001 From: Adrian Kahali Date: Tue, 19 May 2026 16:49:07 -0400 Subject: [PATCH 1/2] fix: sidebar styling --- src/components/sidebar-tree-view.tsx | 10 +++++----- src/layouts/DocsLayout.astro | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/sidebar-tree-view.tsx b/src/components/sidebar-tree-view.tsx index 62a3012..606d267 100644 --- a/src/components/sidebar-tree-view.tsx +++ b/src/components/sidebar-tree-view.tsx @@ -73,7 +73,7 @@ function NestedCategory({ : 'text-stone-600 hover:bg-black/5 hover:text-stone-900 dark:text-stone-400 dark:hover:bg-white/5 dark:hover:text-stone-100' }`} > - + {node.icon && } {node.label} @@ -93,7 +93,7 @@ function NestedCategory({ onClick={() => setExpanded((v) => !v)} className={`${labelClass} cursor-pointer text-stone-600 hover:bg-black/5 hover:text-stone-900 dark:text-stone-400 dark:hover:bg-white/5 dark:hover:text-stone-100`} > - + {node.icon && } {node.label} @@ -146,7 +146,7 @@ function ChildNode({ const active = isPathActive(node.href, currentPath) const pad = PAD[depth] ?? PAD[PAD.length - 1] const activeLine = - depth === 1 + depth >= 1 ? ' relative before:absolute before:left-2.5 before:top-2 before:bottom-2 before:w-px before:bg-primary' : '' @@ -154,7 +154,7 @@ function ChildNode({
  • {node.icon && } {node.label} diff --git a/src/layouts/DocsLayout.astro b/src/layouts/DocsLayout.astro index 9e50515..3f430e1 100644 --- a/src/layouts/DocsLayout.astro +++ b/src/layouts/DocsLayout.astro @@ -54,6 +54,7 @@ const navItems: { label: string; href: string; icon?: string }[] = [