perf(webui): scope interactive motion

Replace broad transitions with property-specific animation for progress bars, filters, cards, and dashboard controls. This prevents unrelated layout properties from animating while preserving the existing visual feedback.

Standardize standalone press feedback at a 0.96 scale, keep disabled controls static, and honor both operating-system and in-app reduced-motion preferences.
This commit is contained in:
DrSmoothl committed 2026-07-16 16:05:52 +08:00
1 parent cce9ab07eb
commit cd0466a7e3
11 files changed
+21 -17

No files matched your search

@@ -226,7 +226,7 @@ function ChannelCard({ channel, testing, onToggle, onTest, onEdit, onDelete }: C
animate={{ opacity: 1, y: 0 }}
transition={off ? { duration: 0 } : { duration: 0.18 }}
className={cn(
'flex flex-col gap-2 rounded-xl border bg-card/40 p-3.5 transition-all hover:bg-accent/20 sm:flex-row sm:items-center sm:gap-3',
'flex flex-col gap-2 rounded-xl border bg-card/40 p-3.5 transition-[background-color,opacity] duration-150 ease-out hover:bg-accent/20 sm:flex-row sm:items-center sm:gap-3',
!channel.enabled && 'opacity-60',
)}
>