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 settings: size the composer Beta badge and the settings search offsets from the UI scale (#16524)

Daniel Hane8df6d5ceefc
diff --git a/studio/frontend/src/features/settings/components/composer-settings.tsx b/studio/frontend/src/features/settings/components/composer-settings.tsx
index d62e6599122..ceadb2c8afa 100644
--- a/studio/frontend/src/features/settings/components/composer-settings.tsx
+++ b/studio/frontend/src/features/settings/components/composer-settings.tsx
@@ -146,7 +146,7 @@ export function ComposerSettings({ embedded = false }: { embedded?: boolean }) {
</SettingsRow>
<SettingsRow
label={t("composerSettings.richPaste")}
- badge={<Badge variant="secondary" className="h-4 px-1.5 text-[10px] text-muted-foreground">{t("shell.beta")}</Badge>}
+ badge={<Badge variant="secondary" className="h-4 px-1.5 text-ui-10 text-muted-foreground">{t("shell.beta")}</Badge>}
description={t("composerSettings.richPasteDescription", {
shortcut: isMacPlatform() ? "\u21e7\u2318V" : "Ctrl+Shift+V",
})}
diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsx
index 36a4bdf24ab..abfe5b5f23a 100644
--- a/studio/frontend/src/features/settings/settings-dialog.tsx
+++ b/studio/frontend/src/features/settings/settings-dialog.tsx
@@ -545,7 +545,7 @@ export function SettingsDialog() {
<HugeiconsIcon
icon={Search01Icon}
strokeWidth={2}
- className="pointer-events-none absolute top-[calc(50%-0.5px)] left-[13.5px] size-4 -translate-y-1/2 text-muted-foreground"
+ className="pointer-events-none absolute top-[calc(50%-0.5px)] left-[calc(13.5px*var(--ui-space-scale,1))] size-4 -translate-y-1/2 text-muted-foreground"
/>
<input
value={query}
@@ -559,14 +559,14 @@ export function SettingsDialog() {
data-type-to-activate="settings-search"
placeholder={t("common.search")}
aria-label={t("settings.dialog.searchPlaceholder")}
- className="h-[calc(36px*var(--ui-space-scale,1))] w-full rounded-full border-0 bg-accent pt-px pr-9 pl-[39.5px] text-ui-14p5 text-foreground outline-none transition-colors placeholder:text-muted-foreground dark:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))] dark:focus-visible:bg-[rgb(255_255_255_/_calc(0.14*var(--contrast-wash-gain,1)))]"
+ className="h-[calc(36px*var(--ui-space-scale,1))] w-full rounded-full border-0 bg-accent pt-px pr-9 pl-[calc(39.5px*var(--ui-space-scale,1))] text-ui-14p5 text-foreground outline-none transition-colors placeholder:text-muted-foreground dark:bg-[rgb(255_255_255_/_calc(0.1*var(--contrast-wash-gain,1)))] dark:focus-visible:bg-[rgb(255_255_255_/_calc(0.14*var(--contrast-wash-gain,1)))]"
/>
{query && (
<button
type="button"
onClick={() => setQuery("")}
aria-label={t("settings.dialog.closeAriaLabel")}
- className="absolute top-1/2 right-[12.5px] flex size-4 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground hover:text-foreground"
+ className="absolute top-1/2 right-[calc(12.5px*var(--ui-space-scale,1))] flex size-4 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground hover:text-foreground"
>
<HugeiconsIcon icon={CancelCircleIcon} className="size-4" />
</button>