Skip to content

Commit 252e2ba

Browse files
committed
style: make window not maximized by default and add min size
Signed-off-by: Grigorii Shartsev <[email protected]>
1 parent ec0f341 commit 252e2ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/talk/talk.window.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ const { BrowserWindow } = require('electron')
2626
*/
2727
function createTalkWindow() {
2828
const window = new BrowserWindow({
29-
width: 800,
30-
height: 600,
29+
width: 1280,
30+
height: 800,
31+
minWidth: 600,
32+
minHeight: 400,
3133
show: false,
3234
backgroundColor: '#171717',
3335
autoHideMenuBar: true,
@@ -42,9 +44,7 @@ function createTalkWindow() {
4244
// }
4345

4446
window.once('ready-to-show', () => {
45-
window.maximize()
4647
window.show()
47-
//window.webContents.openDevTools({ mode: 'detach' })
4848
})
4949

5050
window.loadURL(TALK_WINDOW_WEBPACK_ENTRY)

0 commit comments

Comments
 (0)