fix(web): account for Windows window controls in PR page header (#6049)
This commit is contained in:
1 parent
428d9f9f67
commit
a7b0366cbe
1 file changed
+9
@@ -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,
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user