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.

Refine desktop media header alignment (#7859)

Wasim Yousef Said7ea493150980
diff --git a/studio/frontend/src/app/provider.tsx b/studio/frontend/src/app/provider.tsx
index 047c3ae72d9..e41fc2e149d 100644
--- a/studio/frontend/src/app/provider.tsx
+++ b/studio/frontend/src/app/provider.tsx
@@ -291,6 +291,7 @@ const MAC_NATIVE_CHROME_STYLE = {
"--studio-hidden-route-top-inset": "34px",
"--studio-chat-header-height": "44px",
"--studio-chat-header-padding-top": "7px",
+ "--studio-media-header-left-inset": "0.5rem",
"--studio-chat-control-height": "33px",
"--studio-chat-header-right-inset": "0px",
} as CSSProperties;
@@ -307,6 +308,7 @@ const CUSTOM_CHROME_STYLE = {
"--studio-hidden-route-top-inset": "34px",
"--studio-chat-header-height": "48px",
"--studio-chat-header-padding-top": "9px",
+ "--studio-media-header-left-inset": "0.5rem",
"--studio-chat-control-height": "33px",
"--studio-chat-header-right-inset": "0px",
"--studio-window-control-inset": "112px",
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 08b707e06a5..7c70de60883 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -1763,7 +1763,7 @@ export function AppSidebar() {
<img
src="/circle-logo-small.png"
alt="Unsloth"
- className="h-[calc(22px+0.5rem*var(--ui-font-scale,1))] w-[calc(22px+0.5rem*var(--ui-font-scale,1))] shrink-0 rounded-full object-cover"
+ className="relative top-px h-[calc(22px+0.5rem*var(--ui-font-scale,1))] w-[calc(22px+0.5rem*var(--ui-font-scale,1))] shrink-0 rounded-full object-cover"
/>
<span className="relative -top-px truncate font-heading text-[calc(13px+0.5rem*var(--ui-font-scale,1))] font-semibold tracking-[0em] leading-tight text-black dark:text-white dark:tracking-[0.02em]">
unsloth
diff --git a/studio/frontend/src/features/images/images-page.tsx b/studio/frontend/src/features/images/images-page.tsx
index d6b285a2527..102e1445819 100644
--- a/studio/frontend/src/features/images/images-page.tsx
+++ b/studio/frontend/src/features/images/images-page.tsx
@@ -2458,7 +2458,7 @@ export function ImagesPage({ active = true }: { active?: boolean }) {
// 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="relative flex h-[48px] shrink-0 items-start justify-between pl-[var(--studio-media-header-left-inset,1.5rem)] pr-2 pt-[var(--studio-chat-header-padding-top,11px)]">
<div className="flex items-center gap-2">
{pageMode === "train" ? (
<TrainBaseSelector
@@ -2489,7 +2489,7 @@ export function ImagesPage({ active = true }: { active?: boolean }) {
)}
</div>
{/* Create | Train page-mode switch, centered on the page rather than tied to the selector width. PillTabs is the app segmented control. */}
- <div className="pointer-events-none absolute inset-x-0 top-[11px] flex justify-center">
+ <div className="pointer-events-none absolute inset-x-0 top-[var(--studio-chat-header-padding-top,11px)] flex justify-center">
<PillTabs
ariaLabel="Page mode"
value={pageMode}
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 089a4596a1b..4703b0ac433 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -1509,7 +1509,7 @@ export function VideoPage({ active = true }: { active?: boolean }) {
// 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 h-[48px] shrink-0 items-start justify-between pl-[var(--studio-media-header-left-inset,1.5rem)] pr-2 pt-[var(--studio-chat-header-padding-top,11px)]">
<div className="flex items-center gap-3">
<ModelSelector
models={VIDEO_MODELS}