From 71c35f243a772e725c9d92eb5dafd31f312aadf4 Mon Sep 17 00:00:00 2001 From: haritabh-z01 Date: Tue, 16 Dec 2025 12:31:32 +0530 Subject: [PATCH] fix: dynamic height calc for windows for better accessibility --- apps/desktop/src/main/core/window-manager.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/main/core/window-manager.ts b/apps/desktop/src/main/core/window-manager.ts index 4fae216..3b0d9f6 100644 --- a/apps/desktop/src/main/core/window-manager.ts +++ b/apps/desktop/src/main/core/window-manager.ts @@ -103,9 +103,12 @@ export class WindowManager { // Get theme colors before creating window const colors = await this.getThemeColors(); + const primaryDisplay = screen.getPrimaryDisplay(); + const windowHeight = Math.min(800, primaryDisplay.workAreaSize.height - 40); + this.mainWindow = new BrowserWindow({ width: 1200, - height: 800, + height: windowHeight, frame: true, titleBarStyle: "hidden", titleBarOverlay: { @@ -239,9 +242,12 @@ export class WindowManager { // Get theme colors before creating window const colors = await this.getThemeColors(); + const primaryDisplay = screen.getPrimaryDisplay(); + const windowHeight = Math.min(928, primaryDisplay.workAreaSize.height - 40); + this.onboardingWindow = new BrowserWindow({ width: 800, - height: 928, + height: windowHeight, frame: true, titleBarStyle: "hidden", titleBarOverlay: {