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: align the model selector label and truncate long project names (#11917)
Michael Han6b55ba7d2e48
diff --git a/studio/frontend/src/features/chat/components/project-switcher.tsx b/studio/frontend/src/features/chat/components/project-switcher.tsxindex ccf70213c77..d61bff91c39 100644--- a/studio/frontend/src/features/chat/components/project-switcher.tsx+++ b/studio/frontend/src/features/chat/components/project-switcher.tsx@@ -77,7 +77,8 @@ export function ProjectSwitcher({className="size-icon shrink-0 text-foreground/70"/><span className="flex min-w-0 flex-1 items-baseline">- <span className="min-w-0 flex max-w-[calc(150px*var(--ui-space-scale,1))] flex-1 items-baseline truncate font-heading text-ui-16 font-medium leading-tight text-black dark:text-foreground">+ {/* Block: text-overflow skips flex containers, so the ellipsis never showed. */}+ <span className="block min-w-0 max-w-[calc(150px*var(--ui-space-scale,1))] flex-1 truncate font-heading text-ui-16 font-medium leading-tight text-black dark:text-foreground">{label}</span></span>diff --git a/studio/frontend/src/features/model-picker/components/model-selector.tsx b/studio/frontend/src/features/model-picker/components/model-selector.tsxindex 34b731cd2de..e1cea6794f1 100644--- a/studio/frontend/src/features/model-picker/components/model-selector.tsx+++ b/studio/frontend/src/features/model-picker/components/model-selector.tsx@@ -224,8 +224,8 @@ function ModelSelectorTrigger({{currentModel.icon}</span>) : null}- {/* A box-centred Hellix label sits above the icon's centre; drop it 0.05em to centre the caps. */}- <span className="relative top-[0.05em] flex min-w-0 flex-1 items-baseline">+ {/* No vertical offset, so the caps line up with the project switcher. */}+ <span className="flex min-w-0 flex-1 items-baseline">{/* Name and quant stay whole; only the description truncates. The suffix sits outside thisgroup, so even an over-long name leaves room for it. */}<span className="flex min-w-0 items-baseline">