fix: old styling with new shadcn components

This commit is contained in:
2026-02-24 16:58:17 +01:00
parent 9c6b184f7e
commit 5d6ace4e46
11 changed files with 25 additions and 145 deletions

View File

@@ -148,9 +148,9 @@ export function AppSidebar() {
href={item.href}
onClick={() => { if (window.innerWidth < 1024) close(); }}
className={cn(
"flex items-center px-3 py-2 rounded-xl text-sm font-medium transition-all duration-300 relative group/item",
"flex items-center px-3 py-2 rounded-lg text-sm font-medium transition-all duration-300 relative group/item",
isActive
? "bg-primary/10 text-primary shadow-[0_0_15px_rgba(139,92,246,0.15)] ring-1 ring-primary/20"
? "bg-primary/10 text-primary ring-1 ring-primary/20"
: "text-muted-foreground hover:bg-accent/50 hover:text-foreground",
isCollapsed ? "justify-center" : "justify-between"
)}
@@ -172,11 +172,6 @@ export function AppSidebar() {
pathname.startsWith(item.href) && "rotate-90"
)} />
)}
{/* Collapsed Active Indicator */}
{isCollapsed && isActive && (
<div className="absolute left-0 w-1 h-6 bg-primary rounded-r-full" />
)}
</Link>
{item.items && pathname.startsWith(item.href) && !isCollapsed && (