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() {
10701070 filtersMenu,
10711071 rightPanelControl:
10721072 !pullRequestsSupported || rightPanelState.isOpen ? null : panelToggleControls,
1073 rightPanelOpen: rightPanelState.isOpen,
10731074 listBody,
10741075 };
10751076
......@@ -1319,6 +1320,7 @@ function PullRequestsColumn({
13191320 searchInput,
13201321 filtersMenu,
13211322 rightPanelControl,
1323 rightPanelOpen,
13221324 listBody,
13231325}: {
13241326 refreshing: boolean;
......@@ -1334,6 +1336,7 @@ function PullRequestsColumn({
13341336 searchInput: ReactNode;
13351337 filtersMenu: ReactNode;
13361338 rightPanelControl: ReactNode;
1339 rightPanelOpen: boolean;
13371340 listBody: ReactNode;
13381341}) {
13391342 const scrollRef = useRef<HTMLDivElement | null>(null);
......@@ -1398,6 +1401,12 @@ function PullRequestsColumn({
13981401 <header
13991402 className={cn(
14001403 "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)]",
14011410 COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
14021411 )}
14031412 >