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 media viewer: Zoom to fit at the bottom of the scale menu, below a separator (#12028)
Michael Han2f647e8a3b3f
diff --git a/studio/frontend/src/components/media-viewer.tsx b/studio/frontend/src/components/media-viewer.tsxindex 08ca74924ae..161c1d284da 100644--- a/studio/frontend/src/components/media-viewer.tsx+++ b/studio/frontend/src/components/media-viewer.tsx@@ -74,8 +74,6 @@ export function ScaleMenu({}) {const t = useT();const locale = useLocale();- const options = scales.map((scale) => ({ value: String(scale), label: percent(scale, locale) }));- if (fitScale !== undefined) options.unshift({ value: "fit", label: t("library.viewer.fit") });return (<DropdownMenu><DropdownMenuTrigger asChild={true}>@@ -93,11 +91,18 @@ export function ScaleMenu({value={String(value)}onValueChange={(next) => onChange(next === "fit" ? "fit" : Number(next))}>- {options.map((option) => (- <DropdownMenuRadioItem key={option.value} value={option.value}>- {option.label}+ {scales.map((scale) => (+ <DropdownMenuRadioItem key={scale} value={String(scale)}>+ {percent(scale, locale)}</DropdownMenuRadioItem>))}+ {/* Fit, the one a preview opens at, sits apart below the fixed sizes, as ChatGPT has it. */}+ {fitScale !== undefined && (+ <>+ <DropdownMenuSeparator />+ <DropdownMenuRadioItem value="fit">{t("library.viewer.fit")}</DropdownMenuRadioItem>+ </>+ )}</DropdownMenuRadioGroup></DropdownMenuContent></DropdownMenu>diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.tsindex 8b0cfaeedd6..108cce36f08 100644--- a/studio/frontend/src/i18n/locales/en.ts+++ b/studio/frontend/src/i18n/locales/en.ts@@ -3133,7 +3133,7 @@ export const en = {// The full-window file viewer, shared with the Images, Video and Audio pages.viewer: {scale: "Scale",- fit: "Fit",+ fit: "Zoom to fit",moreActionsImage: "More actions for this image",moreActionsVideo: "More actions for this video",moreActionsClip: "More actions for this clip",