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: steadier run settings controls, grey sliders, 18px thumbs (#14926)
Michael Hanaf623ab48a4c
diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsxindex 98fc396f2cf..0cb2f2dd0cd 100644--- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx+++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx@@ -1817,7 +1817,7 @@ export function ChatSettingsPanel({placeholder='{ "env": "staging", "version": "v2.3.1" }'fieldSizing="fixed"className={cn(- "min-h-24 border-0 font-mono text-xs leading-5 corner-squircle focus-visible:ring-0",+ "min-h-24 font-mono text-xs leading-5 corner-squircle focus-visible:ring-0",systemVariablesError &&"ring-1 ring-destructive focus-visible:ring-destructive",)}@@ -1839,7 +1839,7 @@ export function ChatSettingsPanel({) : null}{/* Squircle on the wrapper: Chrome leaves a scroll area's owncorners square. */}- <div className="corner-squircle overflow-hidden rounded-xl">+ <div className="corner-squircle overflow-hidden rounded-xl border border-border transition-colors focus-within:border-ring dark:border-transparent dark:focus-within:border-transparent"><Textareavalue={systemPromptDraft}onChange={(event) => setSystemPromptDraft(event.target.value)}diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 0af5c992d18..3759e174b25 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -362,7 +362,7 @@--slider-thumb: #ffffff;--slider-thumb-shadow: inset 0 0 0 1px #dbdbdb, 0 1.5px 2.5px -0.5px rgb(0 0 0 / 0.08);--slider-track-height: calc(0.15625rem * var(--ui-space-scale, 1));- --slider-thumb-size: calc(1.25rem * var(--ui-space-scale, 1));+ --slider-thumb-size: calc(1.125rem * var(--ui-space-scale, 1));/* Chat-message action icons (assistant action bar, branch pickerchevrons + numbers, message-timing token counter, code-blockcopy/download, user action bar, delete button). One token drives@@ -2714,6 +2714,11 @@ html[data-chat-font] .aui-root {}}+ /* Run settings keep their neutral grey sliders; everywhere else fills with the accent. */+ [data-tour="chat-settings"] {+ --slider-fill: var(--panel-slider-fg);+ }+/* Inline numeric input — used for slider values and Context Length.Designed to read as *editable text* rather than a pill button soit doesn't mirror the Select/dropdown components on the panel.@@ -2722,12 +2727,12 @@ html[data-chat-font] .aui-root {fade-in, just enough to read as interactive without competingwith the slider row's quiet aesthetic. *//* Wider right gutter: the value is right-aligned on the panel's own edge. */- /* 32px like every other inline control on the panel. */+ /* Editing only deepens the fill: a focus ring outside the pill reads as the box growing. */.panel-number-input {- @apply h-8 min-w-8 shrink-0 rounded-full border-0 bg-transparent pl-2 pr-3 text-right text-ui-13! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-[rgb(0_0_0_/_calc(0.04*var(--contrast-wash-gain,1)))] focus:bg-[rgb(0_0_0_/_calc(0.05*var(--contrast-wash-gain,1)))] focus-visible:ring-0! focus-visible:outline-none md:text-ui-13!;+ @apply h-7 min-w-7 shrink-0 rounded-full border-0 bg-transparent pl-2 pr-3 text-right text-ui-13! font-medium tabular-nums text-nav-fg shadow-none transition-colors hover:bg-[rgb(0_0_0_/_calc(0.04*var(--contrast-wash-gain,1)))] focus:bg-[rgb(0_0_0_/_calc(0.07*var(--contrast-wash-gain,1)))] focus-visible:ring-0! focus-visible:outline-none md:text-ui-13!;}.dark .panel-number-input {- @apply hover:bg-[rgb(255_255_255_/_calc(0.04*var(--contrast-wash-gain,1)))] focus:bg-[rgb(255_255_255_/_calc(0.06*var(--contrast-wash-gain,1)))];+ @apply hover:bg-[rgb(255_255_255_/_calc(0.04*var(--contrast-wash-gain,1)))] focus:bg-[rgb(255_255_255_/_calc(0.08*var(--contrast-wash-gain,1)))];}/* Select trigger on the panel: the surface and padding the model rows@@ -2751,8 +2756,7 @@ html[data-chat-font] .aui-root {/* These controls suppress the ring, so keyboard focus would otherwiseland with nothing drawn. Same soft 1px halo as .composer-pill-btn. */.panel-field:focus-visible,- .panel-select-trigger:focus-visible,- .panel-number-input:focus-visible {+ .panel-select-trigger:focus-visible {outline: none;box-shadow: 0 0 0 1px var(--ring-soft) !important;}@@ -5244,7 +5248,7 @@ html.force-reduced-motion .sidebar-section-drop-line {@supports (width: round(1.5px, 1px)) {:root {--slider-track-height: round(calc(0.15625rem * var(--ui-space-scale, 1)), var(--device-px, 1px));- --slider-thumb-size: round(calc(1.25rem * var(--ui-space-scale, 1)), 1px);+ --slider-thumb-size: round(calc(1.125rem * var(--ui-space-scale, 1)), 1px);}}diff --git a/studio/frontend/tests/ui-font-size-scales-spacing.test.ts b/studio/frontend/tests/ui-font-size-scales-spacing.test.tsindex 0c6a4e9ec8a..d75d3d7e6f7 100644--- a/studio/frontend/tests/ui-font-size-scales-spacing.test.ts+++ b/studio/frontend/tests/ui-font-size-scales-spacing.test.ts@@ -272,7 +272,7 @@ test("the plain stylesheets' controls follow the scale", () => {`${rule} has a fixed size`,);}- assert.match(CSS, /--slider-thumb-size: calc\(1\.25rem \* var\(--ui-space-scale, 1\)\);/);+ assert.match(CSS, /--slider-thumb-size: calc\(1\.125rem \* var\(--ui-space-scale, 1\)\);/);assert.match(CSS, /--slider-track-height: calc\(0\.15625rem \* var\(--ui-space-scale, 1\)\);/);});