From f420b5cbd4208c59b44d071df1745edb914b521f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 2 Apr 2025 20:47:53 +0300 Subject: [PATCH] feat(electron): constrain setup window size --- src/services/window.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/services/window.ts b/src/services/window.ts index 70c178612..f5c7857a1 100644 --- a/src/services/window.ts +++ b/src/services/window.ts @@ -257,9 +257,12 @@ function getIcon() { async function createSetupWindow() { const { BrowserWindow } = await import("electron"); // should not be statically imported + const width = 750; + const height = 650; setupWindow = new BrowserWindow({ - width: 800, - height: 800, + width, + height, + resizable: false, title: "TriliumNext Notes Setup", icon: getIcon(), webPreferences: {