Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 更改初始化界面大小

Liang Dingc789f59b6796
diff --git a/app/electron/main.js b/app/electron/main.js
index 847b39bda7..47105e224a 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -131,8 +131,8 @@ const boot = () => {
let defaultHeight
let workArea
try {
- defaultWidth = screen.getPrimaryDisplay().size.width * 4 / 5
- defaultHeight = screen.getPrimaryDisplay().workAreaSize.height * 4 / 5
+ defaultWidth = screen.getPrimaryDisplay().size.width
+ defaultHeight = screen.getPrimaryDisplay().workAreaSize.height
workArea = screen.getPrimaryDisplay().workArea
} catch (e) {
console.error(e)
@@ -807,8 +807,8 @@ app.whenReady().then(() => {
if (firstOpen) {
const firstOpenWindow = new BrowserWindow({
- width: screen.getPrimaryDisplay().size.width / 2,
- height: screen.getPrimaryDisplay().workAreaSize.height / 2,
+ width: screen.getPrimaryDisplay().size.width * 0.6,
+ height: screen.getPrimaryDisplay().workAreaSize.height * 0.8,
frame: false,
icon: path.join(appDir, 'stage', 'icon-large.png'),
transparent: 'linux' !== process.platform,