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}