Merge pull request #3457 from janhq/fix/add-min-height-window

fix: add a minimum height for the main window otherwise it shrinks
This commit is contained in:
Louis 2024-08-26 17:12:34 +07:00 committed by GitHub
commit 7fca45a56c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,10 @@
const DEFAULT_MIN_WIDTH = 400
const DEFAULT_MIN_HEIGHT = 300
export const mainWindowConfig: Electron.BrowserWindowConstructorOptions = {
skipTaskbar: false,
minWidth: DEFAULT_MIN_WIDTH,
minHeight: DEFAULT_MIN_HEIGHT,
show: true,
transparent: true,
frame: false,