From 2e247dd06df0ef52d4b2bad9a03559bf059a9229 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Sat, 18 Apr 2026 14:54:40 -0700 Subject: [PATCH] Improve dashboard sidebar styling --- .../projects/[projectId]/sidebar-layout.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx index a652fe84e..a397cf786 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx @@ -184,7 +184,7 @@ function NavItem({ ); const buttonClasses = cn( - "group flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-sm font-semibold transition-all duration-150 hover:transition-none", + "group flex h-8 w-full items-center justify-between rounded-lg px-3 py-2 text-left text-sm font-semibold transition-all duration-150 hover:transition-none", isHighlighted ? "bg-white/70 text-foreground shadow-sm ring-1 ring-white/60 dark:bg-transparent dark:bg-gradient-to-r dark:from-blue-500/[0.15] dark:to-blue-500/[0.08] dark:shadow-[0_0_12px_rgba(59,130,246,0.15)] dark:ring-blue-500/20" : inactiveClasses, @@ -263,7 +263,16 @@ function NavItem({
{isSection ? (
- + { + if (!isExpanded) { + onToggle?.(); + } + onClick?.(); + }} + className="flex min-w-0 flex-1 items-center gap-3" + > {item.name}