Файли
openidea/e2e/dialogTitleBar.fixture.tsx
T
Ernstjan FreriksтаEjaYF 284a287a0f fix(ui): keep dialogs below the macOS window buttons (#2523)
With the overlay title bar, macOS draws the window buttons over the page, so a tall dialog (e.g. Push) or one dragged to the top edge had its title bar covered. The dialog layer now keeps a top margin of at least the title bar height on macOS, and dragging stops there. Windows and Linux are unchanged.

Co-authored-by: EjaYF <[email protected]>
2026-11-10 23:16:32 +08:00

13 рядки
521 B
TypeScript

import "../src/styles/global.css";
import { createRoot } from "react-dom/client";
import { usePlatform } from "../src/platform/platformInfo";
import { Dialog } from "../src/ui/Dialog";
usePlatform.setState({ os: "macos", overlayTitleBar: true });
document.body.innerHTML = `<div id="root"></div>`;
createRoot(document.querySelector("#root")!).render(
<Dialog open title="Push Commits to origin/main" onClose={() => {}} width={860} maxHeight={720} resizable="both">
<div style={{ height: 2000 }} />
</Dialog>,
);