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: make the composer the same width as the chat column (#11926)
Michael Han953e64a81479
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsxindex 61d6d8727af..f6b7208963d 100644--- a/studio/frontend/src/components/assistant-ui/thread.tsx+++ b/studio/frontend/src/components/assistant-ui/thread.tsx@@ -2517,8 +2517,8 @@ const ThreadWelcome: FC<{return (<div className="aui-thread-welcome-root mx-auto my-auto flex w-full max-w-(--thread-max-width) grow flex-col"><div className="aui-thread-welcome-center flex w-full grow flex-col items-center justify-start pt-[27.5dvh]">- {/* Matches the docked composer's gutter; index.css trims both. */}- <div className="aui-thread-welcome-message flex w-full flex-col justify-center gap-9 px-[var(--custom-chat-welcome-padding,calc(1rem*var(--ui-space-scale,1)))]">+ {/* No padding, so the composer here is as wide as once it docks. */}+ <div className="aui-thread-welcome-message flex w-full flex-col justify-center gap-9">{/* Center the greeting (sloth + title) over the composer. */}<div className="unsloth-welcome-greeting flex flex-row items-center justify-center gap-[calc(15px*var(--ui-space-scale,1))]">{/* Temporary chat keeps the title on its own, no mascot. */}@@ -2573,9 +2573,9 @@ const ComposerAnimated: FC<{// unsloth-composer-shell is the size container the tight (mobile) layout// in index.css queries. It sits outside the surface so those rules can// trim the surface's own padding.- // Its own width variable: every parent here is already capped by the width- // setting, so re-reading that one would apply the cap twice.- <div className="unsloth-composer-shell relative mx-auto min-w-0 w-full max-w-[var(--custom-chat-shell-max-width,46rem)]">+ // Same width as the message column. Full chat width sets its own variable, since+ // its percentage would otherwise resolve against this narrower parent.+ <div className="unsloth-composer-shell relative mx-auto min-w-0 w-full max-w-[var(--custom-chat-shell-max-width,var(--thread-content-max-width,46rem))]"><div className="relative z-10 w-full"><Composerdisabled={disabled}diff --git a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts b/studio/frontend/src/features/settings/stores/appearance-custom-store.tsindex 8d839662297..b2cdd713cd6 100644--- a/studio/frontend/src/features/settings/stores/appearance-custom-store.ts+++ b/studio/frontend/src/features/settings/stores/appearance-custom-store.ts@@ -892,15 +892,14 @@ export function applyCustomizationToDocument(? "72rem": null,);- // The composer shell fills whatever its parent was capped to, so the cap is- // never applied twice. Same result as before at every width.+ // Unset, the composer shell takes the message column's width. Full width's cap+ // holds a percentage, so the shell gets the same number worked out from its+ // parent, which is already capped: 72rem, or the pane less 6rem.setVar("--custom-chat-shell-max-width",- c.chatWidth === "standard" ? null : "100%",- );- setVar(- "--custom-chat-welcome-padding",- c.chatWidth === "standard" ? null : "0px",+ c.chatWidth === "full"+ ? "min(100%, max(calc(72rem - 1.5rem), calc(100% - 1.5rem)))"+ : null,);syncImportedFonts(c.importedFonts);