Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fixing thinking not scrolling issue

Eva Hoa534d4e9e176
diff --git a/app/ui/app/src/components/Thinking.tsx b/app/ui/app/src/components/Thinking.tsx
index a5ad3dc6c..a725ce9c2 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({
</div>
<div
ref={wrapperRef}
- className={`text-xs text-neutral-500 dark:text-neutral-500 rounded-md overflow-hidden
- transition-[max-height,opacity] duration-300 ease-in-out relative ml-6 mt-2`}
+ className={`text-xs text-neutral-500 dark:text-neutral-500 rounded-md
+ transition-[max-height,opacity] duration-300 ease-in-out relative ml-6 mt-2
+ ${isCollapsed ? "overflow-hidden" : "overflow-y-auto max-h-28"}`}
style={{
- maxHeight: getMaxHeight(),
+ maxHeight: isCollapsed ? getMaxHeight() : undefined,
opacity: isCollapsed && finishedThinking ? 0 : 1,
}}
>