diff --git a/main.ts b/main.ts index 87d8432c..81611149 100644 --- a/main.ts +++ b/main.ts @@ -72,20 +72,21 @@ export class Main { getOptions(): BrowserWindowConstructorOptions { const options: BrowserWindowConstructorOptions = { - vibrancy: 'sidebar', - transparent: this.isMac, - backgroundColor: '#80FFFFFF', width: this.WIDTH, height: this.HEIGHT, + minWidth: this.WIDTH, + minHeight: this.HEIGHT, title: this.title, + titleBarStyle: 'hidden', + trafficLightPosition: { x: 16, y: 16 }, webPreferences: { contextIsolation: false, // TODO: Switch this off - nodeIntegration: process.env - .ELECTRON_NODE_INTEGRATION as unknown as boolean, + nodeIntegration: true, }, frame: this.isLinux, - resizable: false, + resizable: true, }; + if (this.isDevelopment || this.isLinux) { Object.assign(options, { icon: this.icon }); } @@ -139,10 +140,6 @@ export class Main { this.mainWindow = null; }); - this.mainWindow.on('will-resize', (e) => { - e.preventDefault(); - }); - this.mainWindow.webContents.on('did-finish-load', () => { if (this.mainWindow === null) { return; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 44f72b5a..e285c183 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -1,14 +1,13 @@ - - diff --git a/src/pages/DatabaseSelector.vue b/src/pages/DatabaseSelector.vue index bd98f40a..fc13162c 100644 --- a/src/pages/DatabaseSelector.vue +++ b/src/pages/DatabaseSelector.vue @@ -6,7 +6,6 @@ 'window-drag': platform !== 'Windows', }" > -
-