Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -1752,16 +1752,19 @@
}

/* Workspace panel show/hide slide. Toggling the left sidebar, right aux panel,
or bottom terminal recomputes the react-resizable-panels layout and snaps
each panel's `flex-grow` (0 ↔ N). FolderWorkspaceShell tags the affected
panel group with `.panel-slide-animating` for the duration of the toggle
only — never during handle drags or container/window resizes — so the
neighboring panes get pushed smoothly instead of jumping. The `>` child
combinator scopes the transition to the group's own panels, so a horizontal
(sidebar/aux) toggle never animates the nested vertical (terminal) group,
and vice versa. */
or bottom terminal snaps that panel's px `flex-basis` (0 ↔ N —
FolderWorkspaceShell pins those three panels in px over the
react-resizable-panels `flex-grow`, which the center / workspace pane still
carries). FolderWorkspaceShell tags the affected panel group with
`.panel-slide-animating` for the duration of the toggle only — never during
handle drags or container/window resizes — so the neighboring panes get
pushed smoothly instead of jumping. The `>` child combinator scopes the
transition to the group's own panels, so a horizontal (sidebar/aux) toggle
never animates the nested vertical (terminal) group, and vice versa. */
.panel-slide-animating > [data-panel] {
transition: flex-grow 240ms ease-out;
transition:
flex-grow 240ms ease-out,
flex-basis 240ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
Expand Down
Loading
Loading