mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-19 04:06:43 +02:00
12 lines
525 B
TypeScript
12 lines
525 B
TypeScript
/** Minimum width for two-pane layouts — below this, panes get too cramped to use. */
|
|
export const WIDE_MIN_WIDTH = 600;
|
|
|
|
/**
|
|
* True when a window should use a two-pane / wide layout: wide enough for two
|
|
* useful panes and wider than it is tall (single columns overflow short windows).
|
|
* Pass inset-adjusted dimensions (window minus safe areas).
|
|
*/
|
|
export function isWideWindow(availableWidth: number, availableHeight: number): boolean {
|
|
return availableWidth >= WIDE_MIN_WIDTH && availableWidth > availableHeight;
|
|
}
|