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: keep the close glyph at its original size (#12738)

Maheswar Kumar496acd8fba03
diff --git a/studio/frontend/src/components/tauri/window-titlebar.tsx b/studio/frontend/src/components/tauri/window-titlebar.tsx
index b30315af677..eb8eae534dd 100644
--- a/studio/frontend/src/components/tauri/window-titlebar.tsx
+++ b/studio/frontend/src/components/tauri/window-titlebar.tsx
@@ -97,6 +97,8 @@ function CaptionGlyph({
((Math.round((pixels - strokePixels) / 2) + strokePixels / 2) * 10) /
pixels;
const corner = Math.min(2, 2.5 - inset);
+ // round caps overshoot their endpoints, so the x ends pull in to keep its old size
+ const tip = inset * 1.5;
return (
<svg
aria-hidden="true"
@@ -137,7 +139,7 @@ function CaptionGlyph({
)}
{kind === "close" && (
<path
- d={`M${inset} ${inset}L${edge} ${edge}M${edge} ${inset}L${inset} ${edge}`}
+ d={`M${tip} ${tip}L${10 - tip} ${10 - tip}M${10 - tip} ${tip}L${tip} ${10 - tip}`}
/>
)}
</svg>