fix layout issues

This commit is contained in:
Boof2015
2026-07-01 17:56:15 -04:00
parent 76a5183dfb
commit 7f00e87823
4 changed files with 280 additions and 114 deletions
+11
View File
@@ -0,0 +1,11 @@
/** 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;
}