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: stop iOS Safari zooming into chat text fields (#10972)
oobabooga9bf25a1e7c0a
diff --git a/studio/frontend/src/features/studio/sections/params-section-controls.tsx b/studio/frontend/src/features/studio/sections/params-section-controls.tsxindex 4624b57c61f..3799f14f6f1 100644--- a/studio/frontend/src/features/studio/sections/params-section-controls.tsx+++ b/studio/frontend/src/features/studio/sections/params-section-controls.tsx@@ -84,7 +84,8 @@ export function ParamsSliderRow({min={min}max={max}step={step}- className="w-12 text-right font-mono text-xs font-medium bg-muted/50 border border-border rounded-lg px-1.5 py-0.5 focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none"+ // w-12 fits 11px mono, not the 16px coarse-pointer focus-zoom floor.+ className="w-12 pointer-coarse:w-16 text-right font-mono text-xs font-medium bg-muted/50 border border-border rounded-lg px-1.5 py-0.5 focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none"/></div></ParamsRow>diff --git a/studio/frontend/src/features/studio/sections/params-section.tsx b/studio/frontend/src/features/studio/sections/params-section.tsxindex 028671fbc61..0214acb7459 100644--- a/studio/frontend/src/features/studio/sections/params-section.tsx+++ b/studio/frontend/src/features/studio/sections/params-section.tsx@@ -248,7 +248,8 @@ export function ParamsSection({min={1}max={useEpochs ? epochsSliderMax : maxStepsSliderMax}step={1}- className="w-14 shrink-0 text-right font-mono text-xs font-medium bg-muted/50 border border-border rounded-lg px-1.5 py-0.5 focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none"+ // Same floor: a step count needs more room at 16px.+ className="w-14 pointer-coarse:w-20 shrink-0 text-right font-mono text-xs font-medium bg-muted/50 border border-border rounded-lg px-1.5 py-0.5 focus:outline-none focus:ring-1 focus:ring-ring [&::-webkit-inner-spin-button]:appearance-none"/></div></div>diff --git a/studio/frontend/src/features/studio/sections/progress-section.tsx b/studio/frontend/src/features/studio/sections/progress-section.tsxindex 25b6bb6bd44..6134e4b9db8 100644--- a/studio/frontend/src/features/studio/sections/progress-section.tsx+++ b/studio/frontend/src/features/studio/sections/progress-section.tsx@@ -417,7 +417,9 @@ function LiveGpuPanel({<selectvalue={selectedGpuIndex}onChange={(e) => setSelectedGpu(Number(e.target.value))}- className="h-6 cursor-pointer rounded-md border border-border bg-popover px-1.5 py-0.5 text-ui-11 text-popover-foreground outline-none hover:bg-muted focus:border-ring transition-colors font-medium appearance-none"+ // At the 16px coarse-pointer floor a 24px box clips descenders, and a long+ // device name widens the row past the viewport.+ className="h-6 cursor-pointer rounded-md border border-border bg-popover px-1.5 py-0.5 text-ui-11 text-popover-foreground outline-none hover:bg-muted focus:border-ring transition-colors font-medium appearance-none pointer-coarse:h-auto pointer-coarse:min-w-0 pointer-coarse:max-w-full"title="Select GPU">{gpus.map((device, index) => (diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.cssindex 3e6213ca14c..6e025f6f4f1 100644--- a/studio/frontend/src/index.css+++ b/studio/frontend/src/index.css@@ -3145,6 +3145,18 @@ html[data-chat-font] .aui-root {background: oklch(0.67 0 0 / 0.5);}+/* Avoid iOS Safari focus zoom. Important in the base layer, because an important+ declaration in an earlier layer beats important utilities such as text-ui-13!. */+@layer base {+ @media (hover: none) and (pointer: coarse) {+ input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]),+ textarea,+ select {+ font-size: max(16px, 1rem * var(--ui-font-scale, 1)) !important;+ }+ }+}+/* Composer textarea: keep the scroll thumb faint until the user hovers ordrags the thumb itself, so a tall draft never shows a heavy dark rail. */.composer-input,diff --git a/studio/frontend/tests/ios-input-zoom-floor.test.ts b/studio/frontend/tests/ios-input-zoom-floor.test.tsnew file mode 100644index 00000000000..79163be69c4--- /dev/null+++ b/studio/frontend/tests/ios-input-zoom-floor.test.ts@@ -0,0 +1,54 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import assert from "node:assert/strict";+import test from "node:test";++import { readSrc } from "./helpers/kit.ts";++const css = readSrc("index.css");++// Below 16px iOS Safari zooms into a focused field and never zooms back out.+const FLOOR_BLOCK =+ /@layer base \{\s*@media \(hover: none\) and \(pointer: coarse\) \{([\s\S]*?)\n\t\}\n\}/;++test("the focus-zoom floor sits in @layer base so it beats important utilities", () => {+ const block = css.match(FLOOR_BLOCK);+ assert.ok(block, "the coarse-pointer font-size floor is gone from index.css");++ // Important declarations reverse layer order, so base beats text-ui-13!.+ assert.match(block[1], /font-size:\s*max\(16px, 1rem \* var\(--ui-font-scale, 1\)\) !important;/);+ assert.match(block[1], /\btextarea\b/);+ assert.match(block[1], /\bselect\b/);+});++test("the floor skips controls that render no text of their own", () => {+ const block = css.match(FLOOR_BLOCK);+ assert.ok(block);+ for (const type of [+ "checkbox",+ "radio",+ "range",+ "color",+ "file",+ "button",+ "submit",+ "reset",+ "image",+ ]) {+ assert.match(block[1], new RegExp(`\\[type="${type}"\\]`));+ }+});++// Three controls pin a box sized for 9-12px text, so the floor clips their value.+const COARSE_COMPANIONS: [string, RegExp][] = [+ ["features/studio/sections/progress-section.tsx", /pointer-coarse:h-auto[\s\S]{0,80}pointer-coarse:min-w-0/],+ ["features/studio/sections/params-section-controls.tsx", /w-12 pointer-coarse:w-16/],+ ["features/studio/sections/params-section.tsx", /w-14 pointer-coarse:w-20/],+];++test("the compact controls the floor outgrows keep their coarse-pointer sizing", () => {+ for (const [path, pattern] of COARSE_COMPANIONS) {+ assert.match(readSrc(path), pattern, `${path} lost its coarse-pointer sizing`);+ }+});