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/frontend: align custom titlebar sidebar surface with the real sidebar (#6455)

oobabooga45f060899e56
diff --git a/studio/frontend/src/components/tauri/window-titlebar.tsx b/studio/frontend/src/components/tauri/window-titlebar.tsx
index 2ef32589027..96556a79995 100644
--- a/studio/frontend/src/components/tauri/window-titlebar.tsx
+++ b/studio/frontend/src/components/tauri/window-titlebar.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON } from "@/components/ui/sidebar";
import { useSidebarPin } from "@/hooks/use-sidebar-pin";
import { isTauri } from "@/lib/api-base";
import { cn } from "@/lib/utils";
@@ -243,8 +244,11 @@ export function WindowTitlebar({
>
{showSidebarSurface && (
<div
- className="h-full shrink-0 border-r border-sidebar-border bg-sidebar"
- style={{ width: pinned ? "16rem" : "3rem" }}
+ className={cn(
+ "h-full shrink-0 border-r border-sidebar-border dark:border-r-0",
+ pinned ? "bg-sidebar" : "bg-white dark:bg-background",
+ )}
+ style={{ width: pinned ? SIDEBAR_WIDTH : SIDEBAR_WIDTH_ICON }}
onMouseDown={handleDragMouseDown}
onDoubleClick={handleDragDoubleClick}
aria-hidden="true"
diff --git a/studio/frontend/src/components/ui/sidebar.tsx b/studio/frontend/src/components/ui/sidebar.tsx
index eb1e1e1eafb..0a717538994 100644
--- a/studio/frontend/src/components/ui/sidebar.tsx
+++ b/studio/frontend/src/components/ui/sidebar.tsx
@@ -766,4 +766,6 @@ export {
SidebarSeparator,
SidebarTrigger,
useSidebar,
+ SIDEBAR_WIDTH,
+ SIDEBAR_WIDTH_ICON,
}