Skip to content

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

:art: Fix border appearing when resizing window on Mac (#16358)

Jeffrey Chendfd1a06cf135
diff --git a/app/electron/main.js b/app/electron/main.js
index 87f22ba93c..5b33329fae 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -325,6 +325,7 @@ const initMainWindow = () => {
fullscreenable: true,
fullscreen: windowState.fullscreen,
trafficLightPosition: {x: 8, y: 8},
+ transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
webPreferences: {
nodeIntegration: true,
webviewTag: true,
@@ -1090,6 +1091,7 @@ app.whenReady().then(() => {
minWidth: 493,
minHeight: 376,
fullscreenable: true,
+ transparent: "darwin" === process.platform, // 避免缩放窗口时出现边框
frame: "darwin" === process.platform,
icon: path.join(appDir, "stage", "icon-large.png"),
titleBarStyle: "hidden",