From 5712faaa2ce528f47fa31a7d0528521374b443c0 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Fri, 6 Mar 2026 12:11:08 -0800 Subject: [PATCH] fix: always open git panel from the right, full width on mobile (#22718) 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`. --- site/src/pages/AgentsPage/AgentDetail.tsx | 2 +- site/src/pages/AgentsPage/RightPanel.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentDetail.tsx b/site/src/pages/AgentsPage/AgentDetail.tsx index af7506304b..4d4a6df512 100644 --- a/site/src/pages/AgentsPage/AgentDetail.tsx +++ b/site/src/pages/AgentsPage/AgentDetail.tsx @@ -1120,7 +1120,7 @@ const AgentDetail: FC = () => {
- {/* Drag handle (xl+ only, on the left edge of the panel) */} + {/* Drag handle (sm+, on the left edge of the panel) */}