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: keep the sidebar bottom fade in sync when groups collapse (#6640)

Michael Han8750d86cf78c
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 443b114caa2..f563f9ae591 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -454,6 +454,7 @@ export function AppSidebar() {
chatOpen,
trainOpen,
runsOpen,
+ pinnedOpen,
isStudioRoute,
]);
@@ -1103,6 +1104,16 @@ export function AppSidebar() {
<SidebarContent
ref={scrollRef}
onScroll={(e) => syncScrollState(e.currentTarget)}
+ // Collapsible groups animate their height; re-measure the fade once the
+ // open/close animation settles, not on the (still-animating) state flip.
+ onAnimationEnd={(e) => {
+ if (
+ e.animationName === "collapsible-down" ||
+ e.animationName === "collapsible-up"
+ ) {
+ syncScrollState(e.currentTarget);
+ }
+ }}
className={cn(
// pb-2 keeps the last row's rounded highlight clear of the
// overflow clip edge so its bottom corners aren't shaved off.