Skip to content

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.

Studio: more edge padding on the model picker dropdowns (#12338)

Michael Han0bf7a4fe5c66
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
index 1d111e4d0f2..1e35e5a0b58 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
+++ b/studio/frontend/src/features/model-picker/components/model-selector/pickers.tsx
@@ -5635,7 +5635,7 @@ export function HubModelPicker({
// Sort dropdown inline right of the section toggle; options depend on the tab and stay visible
// while searching. Fixed width matches the Search Hub button.
const sortTriggerClassName =
- "h-(--picker-control-h) w-(--picker-control-w) shrink-0 justify-between pr-2.5 !border-0 text-xs [&>span]:!text-clip";
+ "h-(--picker-control-h) w-(--picker-control-w) shrink-0 justify-between gap-1.5 pl-4 pr-3.5 !border-0 text-xs [&>span]:!text-clip";
// Tighter menu matching the trigger; keep the option's right padding so the checkmark never overlaps the label.
const sortMenuContentClassName =
"!p-1 !rounded-[14px] [&_[role=option]]:!pl-2 [&_[role=option]]:!py-1.5 [&_[role=option]]:!text-xs [&_[role=option]]:!rounded-[10px]";
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 115ce993862..8e7ef66e2d3 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -374,9 +374,9 @@
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 16px. */
--picker-control-h: calc(1.125rem * var(--ui-space-scale, 1) + 1.125rem * var(--ui-font-scale, 1));
- /* Padding added to Search Hub and the two dropdowns, 0.375rem a side. It
- also stops the "Trending" label clipping, so it tracks the scale. */
- --picker-control-pad: calc(0.75rem * var(--ui-space-scale, 1));
+ /* Extra width for Search Hub and the two dropdowns. Sized so the
+ Safetensors filter (dot and label) fits, so it tracks the scale. */
+ --picker-control-pad: calc(1.5rem * var(--ui-space-scale, 1));
/* 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: calc(0.5rem * var(--ui-space-scale, 1));