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: top-align the settings rows the shared row components do not cover (#15468)

Michael Han7ff6f3efcae1
diff --git a/studio/frontend/src/features/settings/components/keyless-api-access-section.tsx b/studio/frontend/src/features/settings/components/keyless-api-access-section.tsx
index f09c3e9f4a8..22aa88375b0 100644
--- a/studio/frontend/src/features/settings/components/keyless-api-access-section.tsx
+++ b/studio/frontend/src/features/settings/components/keyless-api-access-section.tsx
@@ -186,7 +186,7 @@ export function KeylessApiAccessSection({
data-settings-label="Keyless API access"
className="overflow-hidden rounded-xl border border-border/70"
>
- <div className="flex items-center justify-between gap-4 bg-muted/30 p-4">
+ <div className="flex items-start justify-between gap-4 bg-muted/30 p-4">
<div className="flex min-w-0 items-start gap-3">
<div className="flex size-8 shrink-0 items-center justify-center icon-disc">
<HugeiconsIcon
diff --git a/studio/frontend/src/features/settings/tabs/general-tab.tsx b/studio/frontend/src/features/settings/tabs/general-tab.tsx
index fbe09cb4d3c..4b09873f2e3 100644
--- a/studio/frontend/src/features/settings/tabs/general-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/general-tab.tsx
@@ -657,7 +657,7 @@ export function GeneralTab() {
<div
key={channel}
data-settings-label={name}
- className="flex items-center justify-between gap-4 py-1.5"
+ className="flex items-start justify-between gap-4 py-1.5"
>
<div className="flex min-w-0 items-baseline gap-2">
<span className="text-sm text-foreground">{name}</span>
diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsx
index a953499fea1..72216d3890d 100644
--- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx
@@ -922,7 +922,7 @@ export function ResourcesTab() {
</div>
) : null}
{separateInferenceGpu && (
- <div className="flex items-center justify-between gap-4 border-b border-border/60 py-3 text-sm">
+ <div className="flex items-start justify-between gap-4 border-b border-border/60 py-3 text-sm">
<span className="text-muted-foreground">
{t("settings.resources.gpu.ggufInference")}
</span>
@@ -1006,7 +1006,7 @@ export function ResourcesTab() {
return (
<div
key={`${device.index ?? index}-${device.name ?? "gpu"}`}
- className="flex min-w-0 flex-wrap items-center justify-between gap-x-4 gap-y-2 py-3 max-[992px]:flex-col max-[992px]:items-stretch"
+ className="flex min-w-0 flex-wrap items-start justify-between gap-x-4 gap-y-2 py-3 max-[992px]:flex-col max-[992px]:items-stretch"
>
<div className="min-w-0 flex-1">
<div className="truncate text-sm font-medium text-foreground">
diff --git a/studio/frontend/tests/ui-font-size-scales-spacing.test.ts b/studio/frontend/tests/ui-font-size-scales-spacing.test.ts
index c5329cc0c26..627f274e69f 100644
--- a/studio/frontend/tests/ui-font-size-scales-spacing.test.ts
+++ b/studio/frontend/tests/ui-font-size-scales-spacing.test.ts
@@ -412,7 +412,7 @@ test("composite settings controls shrink inside their row", () => {
),
);
const resources = readSrc("features/settings/tabs/resources-tab.tsx");
- assert.ok(resources.includes("flex min-w-0 flex-wrap items-center justify-between"));
+ assert.ok(resources.includes("flex min-w-0 flex-wrap items-start justify-between"));
assert.ok(
resources.includes(
'"flex w-[min(calc(392px*var(--ui-space-scale,1)),100%)] shrink-0 flex-col',