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: fix the desktop island corner and border seam (#12285)

Lee Jackson1c4fcbaff5c1
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index d62f5f58e39..38851a01245 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -5009,6 +5009,8 @@ export function AppSidebar() {
"font-heading group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:bg-[var(--sidebar-surface)]",
usesNativeMacTitlebar &&
"group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:border-r-0",
+ usesDesktopTitlebar && !usesNativeMacTitlebar && pinned &&
+ "[&_[data-sidebar=sidebar]]:border-r-0",
)}
>
<SidebarHeader
diff --git a/studio/frontend/src/components/tauri/window-titlebar.tsx b/studio/frontend/src/components/tauri/window-titlebar.tsx
index 7e7cb23c179..590f9fb7a57 100644
--- a/studio/frontend/src/components/tauri/window-titlebar.tsx
+++ b/studio/frontend/src/components/tauri/window-titlebar.tsx
@@ -439,11 +439,13 @@ export function WindowTitlebar({
style={{ left: cornerLeft }}
/>
)}
- {/* One border for edge and corner: it snaps to device pixels where a 1px box blurs. */}
+ {/* One border for edge and corner: it snaps to device pixels where a 1px box blurs. Pinned, it
+ is also the sidebar's full-height edge (app-sidebar drops border-r; dark has none). */}
<div
className={cn(
"absolute top-0 right-0 h-[12px] border-t border-sidebar-border",
- pinned && "rounded-tl-[12px] border-l",
+ pinned &&
+ "h-[calc(100dvh-var(--studio-custom-titlebar-height))] rounded-tl-[12px] border-l border-sidebar-border/80 border-t-sidebar-border/90 dark:border-white/10 dark:border-t-white/15",
)}
style={{ left: pinned ? cornerLeft : 0 }}
/>
diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.py
index 02fb78f591f..28701dc4fe4 100644
--- a/tests/studio/test_desktop_reliability_frontend_contract.py
+++ b/tests/studio/test_desktop_reliability_frontend_contract.py
@@ -654,7 +654,17 @@ def test_expanded_titlebar_button_and_corner_match_sidebar_edge():
)
# One border draws the edge and, when pinned, its rounded corner; the top edge always shows.
assert '"absolute top-0 right-0 h-[12px] border-t border-sidebar-border",' in decoration
- assert 'pinned && "rounded-tl-[12px] border-l",' in decoration
+ # Pinned, it is the sidebar's full-height edge: dark has no sidebar border-r to continue it.
+ assert re.search(
+ r'pinned &&\s*"h-\[calc\(100dvh-var\(--studio-custom-titlebar-height\)\)\] '
+ r"rounded-tl-\[12px\] border-l ",
+ decoration,
+ )
+ assert re.search(
+ r"usesDesktopTitlebar && !usesNativeMacTitlebar && pinned &&\s*"
+ r'"\[&_\[data-sidebar=sidebar\]\]:border-r-0"',
+ APP_SIDEBAR.read_text(encoding = "utf-8"),
+ )
assert "style={{ left: pinned ? cornerLeft : 0 }}" in decoration
# The sidebar-coloured mask outside the corner only appears when pinned.
assert decoration.count("{pinned && (") == 1