| ... | ... | @@ -1865,8 +1865,7 @@ function ChatViewContent(props: ChatViewProps) { |
| 1865 | 1865 | panelAnimationDurationMs, |
| 1866 | 1866 | ); |
| 1867 | 1867 | const rightPanelPresent = rightPanelPresence.present; |
| 1868 | | const rightPanelControlsInPanel = |
| 1869 | | rightPanelPresent && (!shouldUseRightPanelSheet || rightPanelOpen); |
| 1868 | const rightPanelControlsInPanel = rightPanelPresent && rightPanelOpen; |
| 1870 | 1869 | const renderedRightPanelSurface = rightPanelPresence.value?.activeSurface ?? null; |
| 1871 | 1870 | const renderedRightPanelSurfaces = rightPanelPresence.value?.surfaces ?? []; |
| 1872 | 1871 | const previewMiniPlayerVisible = shouldRenderPreviewMiniPlayer( |
| ... | ... | @@ -7451,6 +7450,15 @@ function ChatViewContent(props: ChatViewProps) { |
| 7451 | 7450 | <div className="pointer-events-auto flex h-full items-center">{panelToggleControls}</div> |
| 7452 | 7451 | </div> |
| 7453 | 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 | ); |
| 7454 | 7462 | const rightPanelContent = activeThreadRef ? ( |
| 7455 | 7463 | renderedRightPanelSurface?.kind === "preview" ? ( |
| 7456 | 7464 | <Suspense fallback={null}> |
| ... | ... | @@ -7611,7 +7619,7 @@ function ChatViewContent(props: ChatViewProps) { |
| 7611 | 7619 | reserveNativeControls={reserveTitleBarControlInset && !inlineRightPanelOwnsTitleBar} |
| 7612 | 7620 | className="relative bg-background" |
| 7613 | 7621 | > |
| 7614 | | {!shouldUseRightPanelSheet || !rightPanelControlsInPanel ? panelLayoutControls : null} |
| 7622 | {!rightPanelControlsInPanel ? panelLayoutControls : null} |
| 7615 | 7623 | <ChatHeader |
| 7616 | 7624 | {...(!supportsPullRequests || activeProjectRepository === null |
| 7617 | 7625 | ? {} |
| ... | ... | @@ -8039,6 +8047,7 @@ function ChatViewContent(props: ChatViewProps) { |
| 8039 | 8047 | mode="inline" |
| 8040 | 8048 | open={rightPanelOpen} |
| 8041 | 8049 | maximized={rightPanelMaximized} |
| 8050 | layoutControls={rightPanelOpen ? inlineRightPanelControls : null} |
| 8042 | 8051 | surfaces={renderedRightPanelSurfaces} |
| 8043 | 8052 | environmentId={activeThreadRef.environmentId} |
| 8044 | 8053 | activeSurfaceId={renderedRightPanelSurface?.id ?? null} |