fix(WindowService): update default window dimensions to improve user experience (#7789)

- Changed the default width from 1080 to 960 and height from 670 to 600 for the main window.
- Adjusted minimum width and height settings to match the new defaults, enhancing compatibility with various screen sizes.
This commit is contained in:
beyondkmp 2025-07-05 00:13:22 +08:00 committed by GitHub
parent ee4c4b16ec
commit a924da10c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ export class WindowService {
} }
const mainWindowState = windowStateKeeper({ const mainWindowState = windowStateKeeper({
defaultWidth: 1080, defaultWidth: 960,
defaultHeight: 670, defaultHeight: 600,
fullScreen: false, fullScreen: false,
maximize: false maximize: false
}) })
@ -52,7 +52,7 @@ export class WindowService {
y: mainWindowState.y, y: mainWindowState.y,
width: mainWindowState.width, width: mainWindowState.width,
height: mainWindowState.height, height: mainWindowState.height,
minWidth: 1080, minWidth: 960,
minHeight: 600, minHeight: 600,
show: false, show: false,
autoHideMenuBar: true, autoHideMenuBar: true,