refactor(platform): 统一控件 - 统一输入按钮与图标控件样式表现

This commit is contained in:
ddcat666
2026-09-25 06:34:42 +08:00
parent a755102b09
commit 84e5be0bdb
15 changed files with 100 additions and 111 deletions

View File

@@ -173,7 +173,7 @@ function EmotionPad({ preset, onChange }: { preset: CanvasEmotionPreset; onChang
const distance = pointer ? Math.hypot(pointer.x - column, pointer.y - row) : 4;
const proximity = dragging ? Math.max(0, 1 - distance / 1.7) : 0;
return (
<button key={item.id} type="button" aria-label={item.label} title={item.label} className="relative m-auto grid size-7 place-items-center rounded-full outline-none" onClick={() => onChange(item)}>
<button key={item.id} type="button" data-icon-only aria-label={item.label} title={item.label} className="relative m-auto grid size-7 place-items-center rounded-full outline-none" onClick={() => onChange(item)}>
<motion.span
animate={{ scale: active ? 1.65 : 1 + proximity * 0.42, opacity: active ? 1 : onPath ? 0.88 : 0.42 + proximity * 0.45 }}
transition={reducedMotion ? { duration: 0 } : aceternityMotion.spring.dock}