Files
aigc-home/calliope-web/src/lib/wideLayout.ts

12 lines
370 B
TypeScript

/**
* ≥1440px is the full-width breakpoint of the spec. There the add form
* of 模型设置 / ComfyUI 连接 stays open in the right column (a6 / a7);
* below it the form is a drawer that only opens on demand.
*/
export function isWideLayout(): boolean {
return (
typeof window !== "undefined" &&
window.matchMedia("(min-width: 1440px)").matches
);
}