@devries-cameron20 / t3code Mirror · read-only / commits / 0a0b6be968
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 11:30 UTC

fix(web): keep right panel controls clickable (#9517)

Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>

maria committed Sep 3, 2026 at 20:38 UTC 0a0b6be96833adae68b36540c00d347eda278736
2 files changed +16 -4
apps/web/src/components/ChatView.tsx
+12 -3
@@ -1865,8 +1865,7 @@ function ChatViewContent(props: ChatViewProps) {
1865 panelAnimationDurationMs,
1866 );
1867 const rightPanelPresent = rightPanelPresence.present;
1868 - const rightPanelControlsInPanel =
1869 - rightPanelPresent && (!shouldUseRightPanelSheet || rightPanelOpen);
1868 + const rightPanelControlsInPanel = rightPanelPresent && rightPanelOpen;
1869 const renderedRightPanelSurface = rightPanelPresence.value?.activeSurface ?? null;
1870 const renderedRightPanelSurfaces = rightPanelPresence.value?.surfaces ?? [];
1871 const previewMiniPlayerVisible = shouldRenderPreviewMiniPlayer(
@@ -7451,6 +7450,15 @@ function ChatViewContent(props: ChatViewProps) {
7450 <div className="pointer-events-auto flex h-full items-center">{panelToggleControls}</div>
7451 </div>
7452 );
7453 + const inlineRightPanelControls = (
7454 + <div className="mr-px flex h-full items-center gap-1 [-webkit-app-region:no-drag]">
7455 + <RightPanelMaximizeControl
7456 + maximized={rightPanelMaximized}
7457 + onToggle={toggleRightPanelMaximized}
7458 + />
7459 + {panelToggleControls}
7460 + </div>
7461 + );
7462 const rightPanelContent = activeThreadRef ? (
7463 renderedRightPanelSurface?.kind === "preview" ? (
7464 <Suspense fallback={null}>
@@ -7611,7 +7619,7 @@ function ChatViewContent(props: ChatViewProps) {
7619 reserveNativeControls={reserveTitleBarControlInset && !inlineRightPanelOwnsTitleBar}
7620 className="relative bg-background"
7621 >
7614 - {!shouldUseRightPanelSheet || !rightPanelControlsInPanel ? panelLayoutControls : null}
7622 + {!rightPanelControlsInPanel ? panelLayoutControls : null}
7623 <ChatHeader
7624 {...(!supportsPullRequests || activeProjectRepository === null
7625 ? {}
@@ -8039,6 +8047,7 @@ function ChatViewContent(props: ChatViewProps) {
8047 mode="inline"
8048 open={rightPanelOpen}
8049 maximized={rightPanelMaximized}
8050 + layoutControls={rightPanelOpen ? inlineRightPanelControls : null}
8051 surfaces={renderedRightPanelSurfaces}
8052 environmentId={activeThreadRef.environmentId}
8053 activeSurfaceId={renderedRightPanelSurface?.id ?? null}
apps/web/src/components/RightPanelTabs.tsx
+4 -1
@@ -990,7 +990,10 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
990 // controls a few pixels higher and the cluster jumps on open.
991 props.mode === "inline" && !props.layoutControls ? "pr-28" : "pr-3",
992 ownsDesktopTitleBar && "drag-region",
993 - ownsDesktopTitleBar && "wco:pr-[calc(var(--workspace-native-controls-inset)+6rem)]",
993 + ownsDesktopTitleBar &&
994 + (props.layoutControls
995 + ? "wco:pr-[var(--workspace-native-controls-inset)]"
996 + : "wco:pr-[calc(var(--workspace-native-controls-inset)+6rem)]"),
997 props.mode === "inline" && props.maximized && COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
998 )}
999 data-right-panel-tabbar