feat: add quick template functionality to NodePalette and enhance node creation experience

This commit is contained in:
catlog22
2026-02-05 09:57:20 +08:00
parent 0664937b98
commit a19ef94444
9 changed files with 293 additions and 38 deletions

View File

@@ -65,8 +65,8 @@ export function NavGroup({
to={item.path}
onClick={onNavClick}
className={cn(
'flex items-center justify-center gap-3 px-2 py-2.5 rounded-md text-sm transition-colors',
'hover:bg-hover hover:text-foreground',
'flex items-center justify-center gap-3 px-2 py-2.5 rounded-md text-sm transition-all duration-200',
'hover:bg-hover hover:text-foreground hover-glow',
isActive
? 'bg-primary/10 text-primary font-medium'
: 'text-muted-foreground'
@@ -107,8 +107,8 @@ export function NavGroup({
to={item.path}
onClick={onNavClick}
className={cn(
'flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors pl-6',
'hover:bg-hover hover:text-foreground',
'flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-all duration-200 pl-6',
'hover:bg-hover hover:text-foreground hover-glow',
(isActive && !searchParams) || isQueryParamActive
? 'bg-primary/10 text-primary font-medium'
: 'text-muted-foreground'