Conversation
…dows In a 1x2 (or other multi-cell) command center layout with a narrow window, the permission prompt could grow taller than its cell. The buttons (Next / Submit / Cancel) ended up below the cell's overflow-hidden boundary, leaving the user unable to click them or scroll to reach them. Cap the permission box at half the cell height with internal scroll, and drop the centered max-width when in compact mode so it matches PromptInput. Also switch the layout picker to position="popper" so the dropdown appears below the trigger instead of trying to align the selected item, which was causing jumpy scroll behavior when changing layouts. Generated-By: PostHog Code Task-Id: a8535e34-5b6b-43b0-a08f-3f58fa9d5e95
adboio
approved these changes
May 4, 2026
Contributor
|
Reviews (1): Last reviewed commit: "fix: command center permission prompt an..." | Re-trigger Greptile |
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.
Summary
Reported by Sarah Sanders: in a 1x2 command-center layout, when the window is narrow / not fullscreen, the permission prompt buttons (Next / Submit) become unreachable because they fall below the cell's
overflow-hiddenboundary. Sarah also flagged "scrolling weirdness" when picking a different layout from the layout selector.What changed
SessionView.tsx— the permission box at the bottom of a session pane previously had no height constraint and no scroll, so when its content was taller than the cell it just spilled out and got clipped. It now:max-h-1/2of the cell height withoverflow-y-auto, so the user can scroll to reach the buttons when the cell is short.mx-auto+ 750pxmaxWidthto mirrorPromptInput's behavior, so it fills the narrow cell edge-to-edge.CommandCenterToolbar.tsx— the layoutSelect.Contentwas using Radix's defaultposition="item-aligned", which tries to keep the currently-selected option aligned with the trigger and shifts the popover up/down depending on which preset is selected. Switching toposition="popper"gives a stable, predictable below-trigger placement.Test plan
1x2selected, then with3x3selected — confirm the popover appears below the trigger in both cases without "jumping".mx-auto p-2+ 750px max-width).Created with PostHog Code