fix(terminal): keep TerminalPanel mounted so exit animation plays

AnimatePresence needs the component to stay in the tree during exit.
Previously the parent conditional unmounted it instantly on close,
preventing the shrink+fade animation from running.
This commit is contained in:
Taylor Ho
2026-05-22 00:03:56 -07:00
parent e086d20373
commit c39ea31e1a

View File

@@ -411,7 +411,7 @@ export const ChannelPane = React.memo(function ChannelPane({
}
showTopBorder={false}
/>
{activeChannel && isTerminalOpen ? (
{activeChannel ? (
<TerminalPanel
channelId={activeChannel.id}
isOpen={isTerminalOpen}