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: smaller settings info icons, engine notes under the engine name (#13008)

Michael Han20cdc2347026
diff --git a/studio/frontend/src/features/model-picker/components/inference-engines.tsx b/studio/frontend/src/features/model-picker/components/inference-engines.tsx
index fc0eebe11f4..490de0f3a56 100644
--- a/studio/frontend/src/features/model-picker/components/inference-engines.tsx
+++ b/studio/frontend/src/features/model-picker/components/inference-engines.tsx
@@ -86,12 +86,13 @@ function EngineInstall({
};
return (
<div className="space-y-2 text-ui-12">
- {!(isOwner || engine.installed) && (
+ {/* Settings shows these under the engine name (engineNote). */}
+ {!management && !(isOwner || engine.installed) && (
<p className="text-muted-foreground">
{t("managedEngines.ownerRequired")}
</p>
)}
- {engine.unsupported_reason && (
+ {!management && engine.unsupported_reason && (
<p className="text-muted-foreground">{engine.unsupported_reason}</p>
)}
{running ? (
@@ -225,7 +226,12 @@ function EngineInstall({
export function InferenceEnginesSection() {
const t = useT();
+ const isOwner = useIsAccountOwner();
const { engines, error } = useEngines();
+ // Why the engine can't be installed, shown under its name.
+ const engineNote = (engine: EngineStatus) =>
+ engine.unsupported_reason ||
+ (isOwner || engine.installed ? undefined : t("managedEngines.ownerRequired"));
return (
<SettingsSection
title={t("managedEngines.title")}
@@ -233,7 +239,11 @@ export function InferenceEnginesSection() {
>
{error && <p role="alert">{error}</p>}
{engines.map((engine) => (
- <SettingsRow key={engine.engine} label={names[engine.engine]}>
+ <SettingsRow
+ key={engine.engine}
+ label={names[engine.engine]}
+ description={engineNote(engine)}
+ >
<EngineInstall engine={engine} management={true} />
</SettingsRow>
))}
diff --git a/studio/frontend/src/features/settings/components/settings-row.tsx b/studio/frontend/src/features/settings/components/settings-row.tsx
index eed90267c69..1f5a1bb768b 100644
--- a/studio/frontend/src/features/settings/components/settings-row.tsx
+++ b/studio/frontend/src/features/settings/components/settings-row.tsx
@@ -56,24 +56,18 @@ export function SettingsRow({
</span>
) : null}
<div className="flex min-w-0 w-full max-w-lg flex-col gap-0.5">
- {/* Flex only when hinted, so every other row's label renders exactly
- as before. */}
- <span
- className={cn(
- "text-sm font-medium text-foreground",
- hint && "flex items-center gap-1.5",
- )}
- >
+ <span className="text-sm font-medium text-foreground">
{label}
{hint ? (
<Tooltip>
<TooltipTrigger asChild={true}>
{/* Focusable and labelled, so keyboard users reach the
- text too. Matches the secure-HTTPS hint. */}
+ text too. Matches the secure-HTTPS hint. Inline on the
+ baseline, so it follows the label's last word like a glyph. */}
<button
type="button"
aria-label={hint}
- className="flex shrink-0 items-center rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="ml-1.5 inline-flex align-baseline rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
>
{/* Sized off the token, not size-3.5: the label beside it is
scaled by the UI font size preference, and a fixed 14px
@@ -81,7 +75,7 @@ export function SettingsRow({
app's other small glyphs follow. */}
<HugeiconsIcon
icon={InformationCircleIcon}
- className="size-[var(--ui-icon-size-sm)]"
+ className="size-[var(--ui-icon-size-hint)]"
/>
</button>
</TooltipTrigger>
diff --git a/studio/frontend/src/features/settings/components/usage-examples.tsx b/studio/frontend/src/features/settings/components/usage-examples.tsx
index d337acd73ea..f8f99f7d4c9 100644
--- a/studio/frontend/src/features/settings/components/usage-examples.tsx
+++ b/studio/frontend/src/features/settings/components/usage-examples.tsx
@@ -887,30 +887,31 @@ export function UsageExamples({
/>
<span className="text-ui-11 font-medium text-foreground">
{t("settings.apiKeys.secureHttps")}
+ {/* Only when not launched with --secure: the raw 0.0.0.0 port is
+ still globally reachable, so point the user at --secure. */}
+ {secure ? null : (
+ <Tooltip>
+ <TooltipTrigger asChild={true}>
+ {/* Inline on the baseline, like a glyph after the label. */}
+ <button
+ type="button"
+ className="ml-1.5 inline-flex align-baseline rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ aria-label={t("settings.apiKeys.secureHttpsHint")}
+ >
+ {/* Follows the UI font size, like the SettingsRow hint
+ this matches. */}
+ <HugeiconsIcon
+ icon={InformationCircleIcon}
+ className="size-[var(--ui-icon-size-hint)]"
+ />
+ </button>
+ </TooltipTrigger>
+ <TooltipContent className="max-w-[calc(260px*var(--ui-space-scale,1))] text-ui-11 leading-snug">
+ {t("settings.apiKeys.secureHttpsHint")}
+ </TooltipContent>
+ </Tooltip>
+ )}
</span>
- {/* Only when not launched with --secure: the raw 0.0.0.0 port is
- still globally reachable, so point the user at --secure. */}
- {secure ? null : (
- <Tooltip>
- <TooltipTrigger asChild={true}>
- <button
- type="button"
- className="flex items-center rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
- aria-label={t("settings.apiKeys.secureHttpsHint")}
- >
- {/* Follows the UI font size, like the SettingsRow hint
- this matches. */}
- <HugeiconsIcon
- icon={InformationCircleIcon}
- className="size-[var(--ui-icon-size-sm)]"
- />
- </button>
- </TooltipTrigger>
- <TooltipContent className="max-w-[calc(260px*var(--ui-space-scale,1))] text-ui-11 leading-snug">
- {t("settings.apiKeys.secureHttpsHint")}
- </TooltipContent>
- </Tooltip>
- )}
</div>
<button
type="button"
diff --git a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
index 642d72995ad..7b3cad07389 100644
--- a/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/debugging-tab.tsx
@@ -815,7 +815,7 @@ export function DebuggingTab() {
<HugeiconsIcon
strokeWidth={1.75}
icon={InformationCircleIcon}
- className="size-[var(--ui-icon-size-sm)]"
+ className="size-[var(--ui-icon-size-hint)]"
/>
</button>
</TooltipTrigger>
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 8ec90c6758a..a582bb73eb9 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -413,6 +413,8 @@
/* Mirrors the size-3.5 rule applied inside popovers (see the icon block
below), so widths that reserve room for those icons track them. */
--ui-icon-size-sm: calc(0.875rem * var(--ui-font-scale, 1));
+ /* Info "i" beside a settings label, a notch under the label text. */
+ --ui-icon-size-hint: calc(0.75rem * var(--ui-font-scale, 1));
/* Model picker header controls. Padding and gaps follow --ui-space-scale,
icons and label follow --ui-font-scale, so reserve each separately. The
trigger is 2.25rem of padding and gaps, two icons, then the label, plus
diff --git a/studio/frontend/tests/settings-row-text-width.test.ts b/studio/frontend/tests/settings-row-text-width.test.ts
index 8c84469d293..9f998f8c97f 100644
--- a/studio/frontend/tests/settings-row-text-width.test.ts
+++ b/studio/frontend/tests/settings-row-text-width.test.ts
@@ -4,7 +4,7 @@ import test from "node:test";
import { readSrcAsync } from "./helpers/kit.ts";
const BOUNDED_TEXT_COLUMN =
- /<div className="[^"]*w-full[^"]*max-w-lg[^"]*flex-col[^"]*">\s*\{\/\* Flex only when hinted/;
+ /<div className="[^"]*w-full[^"]*max-w-lg[^"]*flex-col[^"]*">\s*<span className="text-sm font-medium text-foreground">/;
test("settings row titles and descriptions share a bounded text column", async () => {
const source = await readSrcAsync(
@@ -13,3 +13,11 @@ test("settings row titles and descriptions share a bounded text column", async (
assert.match(source, BOUNDED_TEXT_COLUMN);
});
+
+test("a settings row's info icon sits inline on the label's baseline, like a glyph", async () => {
+ const source = await readSrcAsync(
+ "features/settings/components/settings-row.tsx",
+ );
+
+ assert.match(source, /aria-label=\{hint\}\s*className="[^"]*\binline-flex align-baseline\b/);
+});