From 0a0b6be96833adae68b36540c00d347eda278736 Mon Sep 17 00:00:00 2001 From: maria Date: Thu, 3 Sep 2026 20:38:43 -0400 Subject: [PATCH] fix(web): keep right panel controls clickable (#9517) Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com> --- apps/web/src/components/ChatView.tsx | 15 ++++++++++++--- apps/web/src/components/RightPanelTabs.tsx | 5 ++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index ece0a77ea627ecb05d0fe71ad42e2df37ed55adc..4ba53f47b6a4f2ef2e7a6c5201b6ea52c9fe80df 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1865,8 +1865,7 @@ function ChatViewContent(props: ChatViewProps) { panelAnimationDurationMs, ); const rightPanelPresent = rightPanelPresence.present; - const rightPanelControlsInPanel = - rightPanelPresent && (!shouldUseRightPanelSheet || rightPanelOpen); + const rightPanelControlsInPanel = rightPanelPresent && rightPanelOpen; const renderedRightPanelSurface = rightPanelPresence.value?.activeSurface ?? null; const renderedRightPanelSurfaces = rightPanelPresence.value?.surfaces ?? []; const previewMiniPlayerVisible = shouldRenderPreviewMiniPlayer( @@ -7451,6 +7450,15 @@ function ChatViewContent(props: ChatViewProps) {
{panelToggleControls}
); + const inlineRightPanelControls = ( +
+ + {panelToggleControls} +
+ ); const rightPanelContent = activeThreadRef ? ( renderedRightPanelSurface?.kind === "preview" ? ( @@ -7611,7 +7619,7 @@ function ChatViewContent(props: ChatViewProps) { reserveNativeControls={reserveTitleBarControlInset && !inlineRightPanelOwnsTitleBar} className="relative bg-background" > - {!shouldUseRightPanelSheet || !rightPanelControlsInPanel ? panelLayoutControls : null} + {!rightPanelControlsInPanel ? panelLayoutControls : null}