fix(terminal): add subtle scale 0.97 → 1 on open/close animation

This commit is contained in:
Taylor Ho
2026-05-22 00:04:59 -07:00
parent c39ea31e1a
commit 1f0c135dd1

View File

@@ -86,10 +86,11 @@ export function TerminalPanel({ channelId, isOpen }: TerminalPanelProps) {
{isOpen ? (
<motion.div
key="terminal-panel"
initial={{ height: 0, opacity: 0 }}
animate={{ height: heightPx + 12, opacity: 1 }}
exit={{ height: 0, opacity: 0 }}
initial={{ height: 0, opacity: 0, scale: 0.97 }}
animate={{ height: heightPx + 12, opacity: 1, scale: 1 }}
exit={{ height: 0, opacity: 0, scale: 0.97 }}
transition={{ duration: 0.2, ease: "easeOut" }}
style={{ transformOrigin: "bottom center" }}
className="overflow-hidden px-4 pb-2 pt-1"
>
<div