From 4c52f550bbc28d657828a05a1c5806dc854e0d60 Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Thu, 21 May 2026 23:52:08 -0700 Subject: [PATCH] feat(terminal): animate panel open/close with motion/react Panel fades in and grows in height using AnimatePresence + motion.div. Pushes the composer up smoothly as it expands. Reverse on close. --- .../src/features/terminal/TerminalPanel.tsx | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/desktop/src/features/terminal/TerminalPanel.tsx b/desktop/src/features/terminal/TerminalPanel.tsx index d5450304f6..4613787b88 100644 --- a/desktop/src/features/terminal/TerminalPanel.tsx +++ b/desktop/src/features/terminal/TerminalPanel.tsx @@ -1,4 +1,5 @@ import * as React from "react"; +import { AnimatePresence, motion } from "motion/react"; import { TerminalInstance } from "./TerminalInstance"; @@ -80,20 +81,28 @@ export function TerminalPanel({ channelId, isOpen }: TerminalPanelProps) { [heightPx], ); - if (!isOpen) return null; - return ( -
-
- {/* Terminal content */} -
- -
-
-
+ + {isOpen ? ( + +
+ {/* Terminal content */} +
+ +
+
+
+ ) : null} +
); }