From da64fe930bae4c1fe333b364fad104350b933273 Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Wed, 2 Sep 2026 10:05:00 -0700 Subject: [PATCH] feat: smooth collapse/expand animation for terminal toggle --- components/InteractiveTerminal.tsx | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/components/InteractiveTerminal.tsx b/components/InteractiveTerminal.tsx index b47abd9..8954e90 100644 --- a/components/InteractiveTerminal.tsx +++ b/components/InteractiveTerminal.tsx @@ -1,6 +1,6 @@ 'use client' -import { motion } from 'framer-motion' +import { motion, AnimatePresence } from 'framer-motion' import { useEffect, useRef, useState } from 'react' import { useTerminal } from '@/lib/TerminalContext' import ReactMarkdown from 'react-markdown' @@ -232,23 +232,28 @@ export function InteractiveTerminal() { } return ( - +
+ {!isOpen ? ( - + ) : ( )} - + +
) }