An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lipstick: tip and memo
Vanessae2f1a82db4d1
diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.tsindex 7c4a6a8915..16e8c6e9c1 100644--- a/app/src/dialog/tooltip.ts+++ b/app/src/dialog/tooltip.ts@@ -30,11 +30,12 @@ export const showTooltip = (message: string, target: Element, error = false) =>let top = targetRect.bottom;const position = target.getAttribute("data-position");const parentRect = target.parentElement.getBoundingClientRect();- if (position === "right") {+ if (position.startsWith("right")) {// block iconleft = targetRect.right - messageElement.clientWidth;- } else if (position?.endsWith("bottom")) {- top += parseInt(position);+ }+ if (position?.endsWith("bottom")) {+ top += parseInt(position.replace("right", ""));} else if (position === "parentE") {// file tree and outline、backlinktop = parentRect.top;diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.tsindex c30e2a9fe5..0c05fe3738 100644--- a/app/src/layout/topBar.ts+++ b/app/src/layout/topBar.ts@@ -42,7 +42,7 @@ export const initBar = (app: App) => {<div id="barPlugins" class="toolbar__item ariaLabel" aria-label="${window.siyuan.languages.plugin}"><svg><use xlink:href="#iconPlugin"></use></svg></div>-<div id="barCommand" class="toolbar__item ariaLabel" aria-label="${window.siyuan.config.keymap.general.commandPanel.custom}">+<div id="barCommand" class="toolbar__item ariaLabel" aria-label="${window.siyuan.languages.commandPanel} ${updateHotkeyTip(window.siyuan.config.keymap.general.commandPanel.custom)}"><svg><use xlink:href="#iconLayoutBottom"></use></svg></div><div id="barSearch" class="toolbar__item ariaLabel" aria-label="${window.siyuan.languages.globalSearch} ${updateHotkeyTip(window.siyuan.config.keymap.general.globalSearch.custom)}">