diff --git a/app/ui/app/src/components/Thinking.tsx b/app/ui/app/src/components/Thinking.tsx index a5ad3dc6..a725ce9c 100644 --- a/app/ui/app/src/components/Thinking.tsx +++ b/app/ui/app/src/components/Thinking.tsx @@ -73,8 +73,9 @@ export default function Thinking({ // Calculate max height for smooth animations const getMaxHeight = () => { if (isCollapsed) { - return finishedThinking ? "0px" : "12rem"; // 8rem = 128px (same as max-h-32) + return finishedThinking ? "0px" : "12rem"; } + // When expanded, use the content height or grow naturally return contentHeight ? `${contentHeight}px` : "none"; }; @@ -131,10 +132,11 @@ export default function Thinking({