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: round hover for the Settings close button (#12172)

Michael Han3a3cca56953b
diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsx
index 05098ed2e5a..21de076443b 100644
--- a/studio/frontend/src/features/settings/settings-dialog.tsx
+++ b/studio/frontend/src/features/settings/settings-dialog.tsx
@@ -676,7 +676,7 @@ export function SettingsDialog() {
<button
type="button"
onClick={closeDialog}
- className="absolute top-3 end-3 z-10 flex size-[calc(30px*var(--ui-space-scale,1))] items-center justify-center rounded-[10px] text-[#383835] dark:text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="absolute top-3 end-3 z-10 flex size-[calc(30px*var(--ui-space-scale,1))] items-center justify-center rounded-full text-[#383835] dark:text-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
aria-label={t("settings.dialog.closeAriaLabel")}
>
<HugeiconsIcon icon={Cancel01Icon} className="size-4" />
diff --git a/studio/frontend/tests/chrome-icon-button-consistency.test.ts b/studio/frontend/tests/chrome-icon-button-consistency.test.ts
index 9955a3b3554..cdb1b35ebfe 100644
--- a/studio/frontend/tests/chrome-icon-button-consistency.test.ts
+++ b/studio/frontend/tests/chrome-icon-button-consistency.test.ts
@@ -64,7 +64,7 @@ test("run settings uses one aligned toggle in both states", async () => {
assert.ok(headerClasses.has("pr-[18px]"));
});
-test("settings chrome uses the titlebar rounded-square hover shape", async () => {
+test("settings chrome hover shapes: round dialog close, rounded-square cog", async () => {
const [dialog, sidebar] = await Promise.all([
atDefaultUiScale(readSrc("features/settings/settings-dialog.tsx")),
atDefaultUiScale(readSrc("components/app-sidebar.tsx")),
@@ -78,8 +78,8 @@ test("settings chrome uses the titlebar rounded-square hover shape", async () =>
),
);
assert.ok(dialogClose.has("size-[30px]"));
- assert.ok(dialogClose.has("rounded-[10px]"));
- assert.ok(!dialogClose.has("rounded-full"));
+ assert.ok(dialogClose.has("rounded-full"));
+ assert.ok(!dialogClose.has("rounded-[10px]"));
const settingsCog = sidebar.slice(sidebar.indexOf("settings cog; sibling"));
const settingsCogClasses = buttonClasses(