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/pull/17675
Vanessaa2d6b3ec73a2
diff --git a/app/src/layout/tabUtil.ts b/app/src/layout/tabUtil.tsindex 7628d83a37..40e18417a5 100644--- a/app/src/layout/tabUtil.ts+++ b/app/src/layout/tabUtil.ts@@ -27,12 +27,15 @@ import {fetchPost} from "../util/fetch";import {isWindow} from "../util/functions";import {Wnd} from "./Wnd";-export const setTabPosition = (onlyPadding = false) => {+export const setTabPosition = (onlyPadding = false, onlyClear = false) => {const isWindowMode = isWindow();const wndsTemp: Wnd[] = [];if (isWindowMode) {getAllWnds(window.siyuan.layout.layout, wndsTemp);- } else if (window.siyuan.layout?.centerLayout) {+ } else if (window.siyuan.config.appearance.hideToolbar || onlyClear) {+ if (!window.siyuan.layout.centerLayout) {+ return;+ }getAllWnds(window.siyuan.layout.centerLayout, wndsTemp);}diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.tsindex 0ca11a4d1e..2d997d0832 100644--- a/app/src/layout/topBar.ts+++ b/app/src/layout/topBar.ts@@ -44,12 +44,14 @@ const sendTrafficLightPosition = (zoom: number) => {export const syncHideToolbarLayout = () => {document.body.classList.toggle("body--toolbar-hide", window.siyuan.config.appearance.hideToolbar);resizeTopBar();- setTabPosition();/// #if !BROWSERif (!isWindow()) {sendTrafficLightPosition(window.siyuan.storage[Constants.LOCAL_ZOOM]);+ } else {+ return;}/// #endif+ setTabPosition(false, true);};export const updateBarModeIcon = () => {