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/17876
Vanessa583c01f4bd1b
diff --git a/app/src/constants.ts b/app/src/constants.tsindex b3523736d2..ce46a721e7 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -82,17 +82,17 @@ export abstract class Constants {public static readonly SIZE_ZOOM = [{zoom: 0.67,- position: {x: 0, y: 2}+ position: {x: 5, y: 2}},{zoom: 0.75,- position: {x: 1, y: 4}+ position: {x: 5, y: 4}}, {zoom: 0.8,- position: {x: 2, y: 4}+ position: {x: 6, y: 4}}, {zoom: 0.9,- position: {x: 5, y: 6}+ position: {x: 7, y: 6}}, {zoom: 1,position: {x: 8, y: 8}diff --git a/app/src/util/functions.ts b/app/src/util/functions.tsindex 6957db01d8..8ae692768f 100644--- a/app/src/util/functions.ts+++ b/app/src/util/functions.ts@@ -97,7 +97,7 @@ export const objEquals = (a: any, b: any): boolean => {return keys.every(k => objEquals(a[k], b[k]));};-export const duplicateNameAddOne = (name:string) => {+export const duplicateNameAddOne = (name: string) => {if (!name) {return "";}@@ -119,12 +119,12 @@ export const setToolbarLeftMac = (zoom: number) => {return;}// 全屏下红绿灯隐藏,清除内联补偿让 body--fullscreen 的 5px 生效- if (zoom >= 1 || document.body.classList.contains("body--fullscreen")) {+ if (zoom >= .9 || document.body.classList.contains("body--fullscreen")) {document.body.style.removeProperty("--b3-toolbar-left-mac");return;}// 从 :root 读取主题基础值(默认 74px,兼容第三方主题),除以 zoom 让缩放后恢复到基础原生像素const base = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--b3-toolbar-left-mac")) || 74;- document.body.style.setProperty("--b3-toolbar-left-mac", (base / zoom) + "px");+ document.body.style.setProperty("--b3-toolbar-left-mac", (base / zoom * .9) + "px");};/// #endif