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
Widen model picker panel and header controls (#10132)
Michael Han9e0b75aa32aa
diff --git a/studio/frontend/src/features/model-picker/components/model-selector.tsx b/studio/frontend/src/features/model-picker/components/model-selector.tsxindex f12199778b7..bba535cef2c 100644--- a/studio/frontend/src/features/model-picker/components/model-selector.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector.tsx@@ -628,6 +628,9 @@ function ModelSelectorContent({section={effectiveHubSection}sectionToggle={<PillTabs+ // Wider tabs than the shared default. The panel reserves+ // --picker-tab-pad a pill, so keep the two in step.+ className="[&_[role=tab]]:px-[calc(0.75rem_+_var(--picker-tab-pad)/2)]"ariaLabel={t("picker.hubSectionAriaLabel")}tabs={hubSectionTabs}value={effectiveHubSection}diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 1fb0268b80d..2ff0c4caf28 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -324,15 +324,24 @@--ui-icon-size-sm: min(calc(0.875rem * var(--ui-font-scale, 1)), calc(0.4375rem + 0.4375rem * var(--ui-font-scale, 1)));/* Model picker header controls. Padding and gaps come from the pinned--spacing, the icons and label both scale, so reserve each separately.- The trigger is 2.25rem of padding and gaps, two icons, then the label.- All match the h-9 / w-[110px] / 506px they replace at the 16px default. */+ The trigger is 2.25rem of padding and gaps, two icons, then the label,+ plus --picker-control-pad. Height matches the h-9 it replaces at the+ 16px default. */--picker-control-h: calc(1.125rem + 1.125rem * var(--ui-font-scale, 1));- --picker-control-w: calc(2.25rem + 2 * var(--ui-icon-size-sm) + 2.875rem * var(--ui-font-scale, 1));+ /* Padding added to Search Hub and the two dropdowns, 0.375rem a side. Pinned+ like the rest: it pads, and it stops the "Trending" label clipping. */+ --picker-control-pad: 0.75rem;+ /* Same per section pill (Recommended / On Device / Connected), 0.25rem a+ side, i.e. px-3 to px-4 on the tabs. */+ --picker-tab-pad: 0.5rem;+ --picker-control-w: calc(2.25rem + var(--picker-control-pad) + 2 * var(--ui-icon-size-sm) + 2.875rem * var(--ui-font-scale, 1));/* Panel: pl-4, two gaps and pr-2, the pills' padding, their two icons and- label, then the two dropdowns. */- --picker-panel-w: calc(6.25rem + 2 * var(--ui-icon-size-sm) + 9.875rem * var(--ui-font-scale, 1) + 2 * var(--picker-control-w));- /* Provider row adds one more control; split like the rest. */- --picker-panel-w-external: calc(var(--picker-panel-w) + 4rem + 2.75rem * var(--ui-font-scale, 1));+ label, then the two dropdowns. The control row fills this exactly, which+ keeps the last dropdown flush with Search Hub above it. Widening a+ control takes the difference from the search field, not the panel. */+ --picker-panel-w: calc(6.25rem + 2 * var(--picker-tab-pad) + 2 * var(--ui-icon-size-sm) + 9.875rem * var(--ui-font-scale, 1) + 2 * var(--picker-control-w));+ /* Provider row adds one more control and the Connected pill; split like the rest. */+ --picker-panel-w-external: calc(var(--picker-panel-w) + var(--picker-tab-pad) + 4rem + 2.75rem * var(--ui-font-scale, 1));/* Inset of a centered .size-icon glyph within a 2rem (size-8) actionbutton — i.e. (32px − icon-size) / 2. Use as a negative margin on achat-message action bar so the leftmost icon's visual edge aligns