Skip to content

fix: always open git panel from the right, full width on mobile - #22718

Merged
kylecarbs merged 1 commit into
mainfrom
fix/right-panel-always-side
Mar 6, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
fix/right-panel-always-side

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

On small viewports (below xl) the git/changes panel was expanding as a bottom sheet. This changes it to always appear from the right side:

  • Mobile (<sm/640px): Panel opens full-width (w-[100vw]) as a right-side overlay
  • sm+ (640px+): Panel uses the persisted width (--panel-width) with min 360px / max 70vw, drag handle enabled
  • Parent flex container is always flex-row instead of flex-col xl:flex-row

Changes

  • AgentDetail.tsx: Removed flex-col xl:flex-row responsive switch, always uses flex-row
  • RightPanel.tsx: Replaced bottom-sheet layout (h-[42dvh]) with right-side panel at all breakpoints. Full viewport width below sm, resizable width at sm+. Drag handle activates at sm instead of xl.

Previously on viewports below xl the git/changes panel expanded as a
bottom sheet (h-[42dvh]). This changes it to always slide in from the
right side:

- Parent container is always flex-row (not flex-col below xl)
- Panel is w-[100vw] on mobile (<sm) so it goes full width
- At sm+ it uses the persisted --panel-width with min 360px / max 70vw
- Drag handle is enabled at sm+ instead of only xl+
@kylecarbs
kylecarbs merged commit 5712faa into main Mar 6, 2026
27 checks passed
@kylecarbs
kylecarbs deleted the fix/right-panel-always-side branch March 6, 2026 20:11
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants