Repository navigation
fix(desktop): keep the context panel reachable in a narrow window - #1376
Merged
Merged
Conversation
Below the three-column floors (992px) the right panel used to vanish together with its own toggle, and the panel shortcut went inert with it: `hideRightPanel` folded `!canShowRightPanel(...)` into the view-based hides, so a narrow window had no way to reach Files / Runs / Review at all, and nothing was rendered to open even if it had. The panel now yields to the conversation without disappearing. Below the floor it opens as an overlay anchored to the window's right edge, at full height and out of the row's flow, so the conversation keeps its width floor instead of being squeezed or clipped (the reason the column was folded in the first place, #548). The header toggle and `mod+shift+b` drive the drawer there; a drawer opened in a narrow window is promoted to the column when the window grows rather than closing under the reader; a column that no longer fits still folds, and shrinking never pops a drawer over the conversation uninvited. A remote conversation's files panel gets the same treatment, since it shares that corner and that state. Verified by measuring the real shell in the screenshot harness at 900px (scenario `context-panel-narrow`): the toggle sits at 852..884 of 900, the opened panel spans 516..900 at full 860px height while `main` stays 644px wide (unchanged by opening), nothing overflows the window, the panel is hit-tested above the conversation, and close/reopen returns the toggle. Column mode at 1280px is unchanged (`review-file-hover`). tsc, eslint and vitest (5381 desktop tests) pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug
Below the three-column floors (992px) the right panel disappeared together with its own toggle, and the panel shortcut went inert with it:
hideRightPanelfolded a view decision into a availability one, soContextPanelnever rendered — not even the collapsed state's floating button — andmod+shift+bhad nothing to act on. A narrow window had no way to reach Files / Runs / Review at all.The fix
The panel yields to the conversation without disappearing. Below the floor it opens as an overlay anchored to the window's right edge, at full height and out of the row's flow, so the conversation keeps its width floor instead of being squeezed or clipped — which is the reason the column was folded in the first place (#548), and why "just squeeze it" was not an option.
mod+shift+bdrive the drawer in the narrow layout.rightDrawerOpenis deliberately not folded intorightExpanded— the column is a standing preference, the drawer is a narrow-layout request, and conflating them would make a resize do something the user did not ask for.This is the shape the left rail already had.
ActivityRailhas carriedfloating+ an absolutely-positionedleftOverlayOpenwrapper for exactly this case; the right panel was the asymmetric one. So the change makes the two sides consistent rather than inventing a third behaviour.Verification
Measured in the screenshot harness against the real
AppShell(new scenariocontext-panel-narrow, 900px):Column mode at 1280px is unchanged (
review-file-hoverpasses).tsc,eslint, and the desktop suite (5381 cases) pass locally; CI re-runs them.PRODUCT.md§5.1 gains the narrow-window convention so the next reader knows the drawer is intended rather than incidental.