Skip to content

Commit ff4a652

Browse files
authored
fix(app): slide the side panel shut when its last tab closes (#62758)
1 parent cf3381e commit ff4a652

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎packages/app/src/session/screen.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ function SessionScreenContent(props: {
9393
closed: attachment.closed,
9494
open: (key) => attachment.openTab(key, props.view()),
9595
side: () => session.layout.view().side,
96-
// Closing the last tab closes the side region, which opens with a new tab next time. The user's own hand closed
97-
// it, so it goes at once.
96+
// Closing the last tab closes the side region, which opens with a new tab next time. It slides shut as the toggle
97+
// closes it.
9898
onEmptied: () => {
9999
if (!session.layout.view().side.opened()) return
100100
session.layout.view().side.toggle()
101-
sideMotion.sync(false)
102101
},
103102
settled: (run) => sideMotion.whenSettled(run),
104103
})

0 commit comments

Comments
 (0)