mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	feat(electron): constrain setup window size
This commit is contained in:
		@@ -257,9 +257,12 @@ function getIcon() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
async function createSetupWindow() {
 | 
					async function createSetupWindow() {
 | 
				
			||||||
    const { BrowserWindow } = await import("electron"); // should not be statically imported
 | 
					    const { BrowserWindow } = await import("electron"); // should not be statically imported
 | 
				
			||||||
 | 
					    const width = 750;
 | 
				
			||||||
 | 
					    const height = 650;
 | 
				
			||||||
    setupWindow = new BrowserWindow({
 | 
					    setupWindow = new BrowserWindow({
 | 
				
			||||||
        width: 800,
 | 
					        width,
 | 
				
			||||||
        height: 800,
 | 
					        height,
 | 
				
			||||||
 | 
					        resizable: false,
 | 
				
			||||||
        title: "TriliumNext Notes Setup",
 | 
					        title: "TriliumNext Notes Setup",
 | 
				
			||||||
        icon: getIcon(),
 | 
					        icon: getIcon(),
 | 
				
			||||||
        webPreferences: {
 | 
					        webPreferences: {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user