Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): account for Windows window controls in PR page header (#6049)

Utkarsh Patila7b0366cbe1e
diff --git a/apps/web/src/routes/_chat.pull-requests.tsx b/apps/web/src/routes/_chat.pull-requests.tsx
index 8631324d0..ecdc183b8 100644
--- a/apps/web/src/routes/_chat.pull-requests.tsx
+++ b/apps/web/src/routes/_chat.pull-requests.tsx
@@ -1070,6 +1070,7 @@ function PullRequestsRouteView() {
filtersMenu,
rightPanelControl:
!pullRequestsSupported || rightPanelState.isOpen ? null : panelToggleControls,
+ rightPanelOpen: rightPanelState.isOpen,
listBody,
};
@@ -1319,6 +1320,7 @@ function PullRequestsColumn({
searchInput,
filtersMenu,
rightPanelControl,
+ rightPanelOpen,
listBody,
}: {
refreshing: boolean;
@@ -1334,6 +1336,7 @@ function PullRequestsColumn({
searchInput: ReactNode;
filtersMenu: ReactNode;
rightPanelControl: ReactNode;
+ rightPanelOpen: boolean;
listBody: ReactNode;
}) {
const scrollRef = useRef<HTMLDivElement | null>(null);
@@ -1398,6 +1401,12 @@ function PullRequestsColumn({
<header
className={cn(
"workspace-topbar drag-region gap-1.5 px-3 sm:px-5",
+ // A closed right panel leaves this column full-width, so its header runs
+ // underneath the native window controls on Windows; reserve the inset the
+ // way Settings and the chat view do. While the panel is open the column
+ // ends at the panel's left edge and the absolute controls strip (already
+ // WCO-aware) owns the top-right corner.
+ !rightPanelOpen && "wco:pr-[var(--workspace-native-controls-inset)]",
COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
)}
>