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: fix sidebar rail bottom fade rendering as a lighter block (#7674)

Leo Borcherding91b93ab9dfac
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 5adcdb3024d..575eda76d04 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -1184,7 +1184,9 @@ export function AppSidebar() {
collapsible="icon"
variant="sidebar"
className={cn(
- "font-heading group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:bg-white dark:group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:bg-background",
+ // Rail background comes from --sidebar-surface (index.css) so the
+ // footer fade below can match it in every theme.
+ "font-heading group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:bg-[var(--sidebar-surface)]",
usesNativeMacTitlebar &&
"group-data-[collapsible=icon]:[&_[data-sidebar=sidebar]]:border-r-0",
)}
@@ -1861,7 +1863,7 @@ export function AppSidebar() {
<div
aria-hidden="true"
className={cn(
- "pointer-events-none absolute left-0 right-2 bottom-full bg-gradient-to-t from-[var(--sidebar)] to-[rgb(from_var(--sidebar)_r_g_b/0)] transition-opacity duration-200",
+ "pointer-events-none absolute left-0 right-2 bottom-full bg-gradient-to-t from-[var(--sidebar-surface)] to-[rgb(from_var(--sidebar-surface)_r_g_b/0)] transition-opacity duration-200",
// Shorter fade when the update card sits above the profile so the
// list reads closer to it.
showUpdateCard ? "h-3" : "h-10",
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index c586798bb0e..f18be92f949 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -16,6 +16,18 @@
@custom-variant dark (&:is(.dark *));
@layer components {
+ /* The surface the sidebar panel actually paints. The collapsed icon rail
+ repaints it, so gradients fading into the panel must read this rather
+ than --sidebar, or they render as a block instead of a fade. */
+ [data-sidebar="sidebar"] {
+ --sidebar-surface: var(--sidebar);
+ }
+ [data-collapsible="icon"] [data-sidebar="sidebar"] {
+ --sidebar-surface: #ffffff;
+ }
+ .dark [data-collapsible="icon"] [data-sidebar="sidebar"] {
+ --sidebar-surface: var(--background);
+ }
/* Sidebar scroll area (Gemini-style). The BOTTOM edge always fades so the
last rows dissolve into the profile footer (no divider line). Once
scrolled, the TOP edge also fades so rows dissolve as they pass under the
@@ -47,8 +59,8 @@
black), which shows a grey midtone in Safari 27 Liquid Glass. */
background: linear-gradient(
to top,
- var(--sidebar),
- rgb(from var(--sidebar) r g b / 0)
+ var(--sidebar-surface),
+ rgb(from var(--sidebar-surface) r g b / 0)
);
}
/* Model picker list: once scrolled, the top edge fades so rows dissolve as