An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/2955
Vanessa9a284590c2d6
diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.tsindex 6231bdeab5..f2ac342b0b 100644--- a/app/src/util/onGetConfig.ts+++ b/app/src/util/onGetConfig.ts@@ -562,15 +562,21 @@ export const initWindow = () => {currentWindow.minimize();});closeBtnElement.addEventListener("click", () => {- winOnClose(currentWindow);+ if (isWindow()) {+ currentWindow.destroy();+ } else {+ winOnClose(currentWindow);+ }});/// #else- document.querySelector(".toolbar").classList.add("toolbar--browser");- window.addEventListener("beforeunload", () => {- exportLayout(false);- }, false);- window.addEventListener("pagehide", () => {- exportLayout(false);- }, false);+ if (!isWindow()) {+ document.querySelector(".toolbar").classList.add("toolbar--browser");+ window.addEventListener("beforeunload", () => {+ exportLayout(false);+ }, false);+ window.addEventListener("pagehide", () => {+ exportLayout(false);+ }, false);+ }/// #endif};diff --git a/app/src/window/setHeader.ts b/app/src/window/setHeader.tsindex c954b7e88b..cc655475fa 100644--- a/app/src/window/setHeader.ts+++ b/app/src/window/setHeader.ts@@ -39,7 +39,7 @@ export const setTabPosition = () => {}} else {if (rect.top <= 0 && rect.right >= window.innerWidth) {- (headerElement.lastElementChild as HTMLElement).style.paddingRight = (42 * 3) + "px";+ (headerElement.lastElementChild as HTMLElement).style.paddingRight = (32 * 3) + "px";} else {(headerElement.lastElementChild as HTMLElement).style.paddingRight = "";}