Skip to content

Commit 438e46c

Browse files
authored
feat(compass): larger initial window width (#2761)
1 parent c16dd2f commit 438e46c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/compass/src/main/window-manager.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ import path from 'path';
77
import createDebug from 'debug';
88
import { ipcMain } from 'hadron-ipc';
99
import { once } from 'events';
10-
import {
11-
app as electronApp,
12-
shell,
13-
dialog,
14-
BrowserWindow,
10+
import type {
1511
BrowserWindowConstructorOptions,
1612
FindInPageOptions,
1713
} from 'electron';
14+
import { app as electronApp, shell, dialog, BrowserWindow } from 'electron';
1815
import COMPASS_ICON from './icon';
1916
import type { CompassApplication } from './application';
2017

@@ -27,7 +24,7 @@ const debug = createDebug('mongodb-compass:electron:window-manager');
2724
/**
2825
* The outer dimensions to use for new windows.
2926
*/
30-
const DEFAULT_WIDTH = 1280;
27+
const DEFAULT_WIDTH = 1432;
3128
const DEFAULT_HEIGHT = (() => {
3229
let height = 840;
3330
/**
@@ -277,7 +274,7 @@ class CompassWindowManager {
277274
}
278275

279276
static init(app: CompassApplication): Promise<void> {
280-
return this.initPromise ??= this._init(app);
277+
return (this.initPromise ??= this._init(app));
281278
}
282279
}
283280

0 commit comments

Comments
 (0)