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: tab 最小化
Vanessaa3c28bbb4d86
diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.tsindex 1f9fc94f38..5e384cd8c6 100644--- a/app/src/boot/onGetConfig.ts+++ b/app/src/boot/onGetConfig.ts@@ -126,7 +126,9 @@ export const onGetConfig = (isStart: boolean, app: App) => {window.siyuan.emojis = response.data as IEmoji[];try {JSONToLayout(app, isStart);- adjustLayout();+ setTimeout(() => {+ adjustLayout();+ }); // 等待 dock 中 !this.pin 的 setTimeout/// #if !BROWSERsendGlobalShortcut(app);/// #endifdiff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex ee6ad3fb23..743a32ae78 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -876,7 +876,8 @@ export const adjustLayout = (layout: Layout = window.siyuan.layout.centerLayout.}});let lastItem: HTMLElement;- while (layout.element.scrollWidth > layout.element.clientWidth) {+ let index = Math.floor(window.innerWidth / 24);+ while (layout.element.scrollWidth > layout.element.clientWidth && index > 0) {layout.children.find((item: Layout | Wnd) => {if (item.element.style.width && item.element.style.width !== "0px") {item.element.style.maxWidth = Math.max(Math.min(item.element.clientWidth, window.innerWidth) - 8, 64) + "px";@@ -886,6 +887,7 @@ export const adjustLayout = (layout: Layout = window.siyuan.layout.centerLayout.return true;}});+ index--;}if (lastItem) {lastItem.style.maxWidth = Math.max(Math.min(lastItem.clientWidth, window.innerWidth) - 8, 64) + "px";