Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
studio: keep open thinking sized when the chat pane narrows (#13503)
Michael Han28bcef49f195
diff --git a/studio/frontend/src/components/ui/unmeasured-collapsible.tsx b/studio/frontend/src/components/ui/unmeasured-collapsible.tsxindex 2584ecc6dbb..98743261427 100644--- a/studio/frontend/src/components/ui/unmeasured-collapsible.tsx+++ b/studio/frontend/src/components/ui/unmeasured-collapsible.tsx@@ -270,7 +270,9 @@ const UnmeasuredCollapsibleContent = React.forwardRef<// switches the display utility itself rather than relying on the attribute.present ? "grid" : "hidden","transition-[grid-template-rows]",- expanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]",+ // Not bare `1fr` (`minmax(auto, 1fr)`): WebKit keeps that row at its old height when a+ // narrower pane reflows the content taller, clipping the bottom of the trace.+ expanded ? "grid-rows-[minmax(0,1fr)]" : "grid-rows-[minmax(0,0fr)]",className,)}>diff --git a/studio/frontend/tests/reasoning-grid-collapse.test.ts b/studio/frontend/tests/reasoning-grid-collapse.test.tsindex 0302c08fe5c..ea4b1e38187 100644--- a/studio/frontend/tests/reasoning-grid-collapse.test.ts+++ b/studio/frontend/tests/reasoning-grid-collapse.test.ts@@ -76,8 +76,9 @@ test("the animating child carries min-height:0 and overflow:hidden", () => {test("the collapse is a grid-template-rows transition between 0fr and 1fr", () => {const code = codeOf(UNMEASURED);assert.ok(code.includes("transition-[grid-template-rows]"));- assert.ok(code.includes('"grid-rows-[1fr]"'));- assert.ok(code.includes('"grid-rows-[0fr]"'));+ // minmax(0, ...) on both ends: a bare `1fr` row goes stale in WebKit when the pane narrows.+ assert.ok(code.includes('"grid-rows-[minmax(0,1fr)]"'));+ assert.ok(code.includes('"grid-rows-[minmax(0,0fr)]"'));// The closed state must switch the display utility, not lean on the `hidden` attribute: the UA// sheet's `[hidden] { display: none }` loses to the author-level `display: grid`.assert.ok(code.includes('present ? "grid" : "hidden"'));