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.

Unsloth Studio: keep the Images and Video headers clear of the custom titlebar (#7918)

Leo Borcherding4628d2f8174b
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index 64949623a90..d6b285a2527 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -2454,7 +2454,9 @@ export function ImagesPage({ active = true }: { active?: boolean }) {
);
return (
- <div className="diffusion-surface flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
+ // The chat-style layout gives this page no outer top inset, so clear the custom
+ // titlebar here (34px on win/linux, 0 under macOS's native one) as chat does.
+ <div className="diffusion-surface flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden pt-[var(--studio-content-top-inset,0px)]">
{/* Top: the model selector, sitting clear of the sidebar and level with the settings column below. Load progress shows in a toast. */}
<div className="relative flex h-[48px] shrink-0 items-start justify-between pl-6 pr-2 pt-[11px]">
<div className="flex items-center gap-2">
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 76d4d7fe754..089a4596a1b 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -1505,7 +1505,9 @@ export function VideoPage({ active = true }: { active?: boolean }) {
);
return (
- <div className="diffusion-surface flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
+ // The chat-style layout gives this page no outer top inset, so clear the custom
+ // titlebar here (34px on win/linux, 0 under macOS's native one) as chat does.
+ <div className="diffusion-surface flex h-full min-h-0 min-w-0 flex-1 flex-col overflow-hidden pt-[var(--studio-content-top-inset,0px)]">
{/* Top: the model selector, sitting clear of the sidebar and level with the controls column below. Load progress shows in a toast. */}
<div className="flex h-[48px] shrink-0 items-start justify-between pl-6 pr-2 pt-[11px]">
<div className="flex items-center gap-3">
diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.py
index 3f48926d7ef..034ada3940c 100644
--- a/tests/studio/test_desktop_reliability_frontend_contract.py
+++ b/tests/studio/test_desktop_reliability_frontend_contract.py
@@ -33,6 +33,9 @@ DESKTOP_UPDATE_POLICY = REPO / "studio/src-tauri/src/desktop_update_policy.rs"
APP_PROVIDER = FRONTEND / "app/provider.tsx"
+ROOT_ROUTE = FRONTEND / "app/routes/__root.tsx"
+IMAGES_PAGE = FRONTEND / "features/images/images-page.tsx"
+VIDEO_PAGE = FRONTEND / "features/video/video-page.tsx"
CLIPBOARD_FILES = FRONTEND / "features/chat/utils/clipboard-files.ts"
TAURI_CAPABILITIES = REPO / "studio/src-tauri/capabilities/default.json"
@@ -510,3 +513,13 @@ def test_chat_sidebar_row_actions_visible_on_coarse_pointers():
# Must not reveal every sidebar-row-action (project/run/nav rows lack padding).
assert ".sidebar-row-action {\n\t\t\t@apply opacity-100" not in coarse_block
assert ".sidebar-row-action.sidebar-touch-reveal" in coarse_block
+
+
+def test_media_pages_clear_the_custom_titlebar():
+ """The chat-style layout gives the media pages no outer inset, so each applies its own."""
+ root = ROOT_ROUTE.read_text(encoding = "utf-8")
+
+ assert "const isChatLike = isChatRoute || isImagesRoute || isVideoRoute;" in root
+ for page in (IMAGES_PAGE, VIDEO_PAGE):
+ shell = page.read_text(encoding = "utf-8").split('"diffusion-surface', 1)[1].split(">", 1)[0]
+ assert "pt-[var(--studio-content-top-inset,0px)]" in shell, page.name