From ff4a652d1b783d3e811b167821aaa0903bc40516 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Sun, 8 Nov 2026 13:05:45 -0600 Subject: [PATCH] fix(app): slide the side panel shut when its last tab closes (#62758) --- packages/app/src/session/screen.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/app/src/session/screen.tsx b/packages/app/src/session/screen.tsx index b35d303d97d..34c609512de 100644 --- a/packages/app/src/session/screen.tsx +++ b/packages/app/src/session/screen.tsx @@ -93,12 +93,11 @@ function SessionScreenContent(props: { closed: attachment.closed, open: (key) => attachment.openTab(key, props.view()), side: () => session.layout.view().side, - // Closing the last tab closes the side region, which opens with a new tab next time. The user's own hand closed - // it, so it goes at once. + // Closing the last tab closes the side region, which opens with a new tab next time. It slides shut as the toggle + // closes it. onEmptied: () => { if (!session.layout.view().side.opened()) return session.layout.view().side.toggle() - sideMotion.sync(false) }, settled: (run) => sideMotion.whenSettled(run), })