authorgravatar for 73941998+UtkarshUsername@users.noreply.github.comUtkarsh Patil <73941998+UtkarshUsername@users.noreply.github.com> 2026-08-11 01:40:00+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-10 22:10:00+02:00
loga7b0366cbe1e9eabc9e37eb079a38f6b6691f999
tree9aa5de68bb16563c135b0a1e02f7974e6ea7f6f5
parent428d9f9f67b73688317e362d9f658d06b2a42dfe
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 9 insertions(+), 0 deletions(-)

apps/web/src/routes/_chat.pull-requests.tsx+9
...@@ -1070,6 +1070,7 @@ function PullRequestsRouteView() {...@@ -1070,6 +1070,7 @@ function PullRequestsRouteView() {
1070 filtersMenu,1070 filtersMenu,
1071 rightPanelControl:1071 rightPanelControl:
1072 !pullRequestsSupported || rightPanelState.isOpen ? null : panelToggleControls,1072 !pullRequestsSupported || rightPanelState.isOpen ? null : panelToggleControls,
1073 rightPanelOpen: rightPanelState.isOpen,
1073 listBody,1074 listBody,
1074 };1075 };
10751076
...@@ -1319,6 +1320,7 @@ function PullRequestsColumn({...@@ -1319,6 +1320,7 @@ function PullRequestsColumn({
1319 searchInput,1320 searchInput,
1320 filtersMenu,1321 filtersMenu,
1321 rightPanelControl,1322 rightPanelControl,
1323 rightPanelOpen,
1322 listBody,1324 listBody,
1323}: {1325}: {
1324 refreshing: boolean;1326 refreshing: boolean;
...@@ -1334,6 +1336,7 @@ function PullRequestsColumn({...@@ -1334,6 +1336,7 @@ function PullRequestsColumn({
1334 searchInput: ReactNode;1336 searchInput: ReactNode;
1335 filtersMenu: ReactNode;1337 filtersMenu: ReactNode;
1336 rightPanelControl: ReactNode;1338 rightPanelControl: ReactNode;
1339 rightPanelOpen: boolean;
1337 listBody: ReactNode;1340 listBody: ReactNode;
1338}) {1341}) {
1339 const scrollRef = useRef<HTMLDivElement | null>(null);1342 const scrollRef = useRef<HTMLDivElement | null>(null);
...@@ -1398,6 +1401,12 @@ function PullRequestsColumn({...@@ -1398,6 +1401,12 @@ function PullRequestsColumn({
1398 <header1401 <header
1399 className={cn(1402 className={cn(
1400 "workspace-topbar drag-region gap-1.5 px-3 sm:px-5",1403 "workspace-topbar drag-region gap-1.5 px-3 sm:px-5",
1404 // A closed right panel leaves this column full-width, so its header runs
1405 // underneath the native window controls on Windows; reserve the inset the
1406 // way Settings and the chat view do. While the panel is open the column
1407 // ends at the panel's left edge and the absolute controls strip (already
1408 // WCO-aware) owns the top-right corner.
1409 !rightPanelOpen && "wco:pr-[var(--workspace-native-controls-inset)]",
1401 COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,1410 COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
1402 )}1411 )}
1403 >1412 >