дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 13:32:29 +02:00
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]>
13 рядки
521 B
TypeScript
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>,
|
|
);
|