refactor: split CommandFooter, perf tweaks

- extracted drawer modal to CommandDrawer (~180 lines)
- CommandFooter now under 270 lines
- replaced transition-all with specific props (colors, transform, etc)
- should reduce repaints on hover states
This commit is contained in:
N1C4T
2025-12-31 22:11:19 +04:00
parent 4a70f293c1
commit c3b737f901
47 changed files with 363 additions and 712 deletions

View File

@@ -37,7 +37,7 @@ export function ThemeToggle({ className }: ThemeToggleProps) {
return (
<div
className={cn(
"flex w-20 h-10 p-1 rounded-full cursor-pointer transition-all duration-300",
"flex w-20 h-10 p-1 rounded-full cursor-pointer transition-[background-color,box-shadow] duration-300",
"bg-[var(--bg-secondary)] border border-[var(--border-primary)]",
className
)}