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: fix https://github.com/siyuan-note/siyuan/issues/12615
Vanessa288d09252423
diff --git a/app/src/block/popover.ts b/app/src/block/popover.tsindex 64a1b55188..3646ed3408 100644--- a/app/src/block/popover.ts+++ b/app/src/block/popover.ts@@ -87,11 +87,19 @@ export const initBlockPopover = (app: App) => {hideTooltip();}} else if (!aElement) {- const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true);- if (!tipElement || (- tipElement && (tipElement.clientHeight >= tipElement.scrollHeight && tipElement.clientWidth >= tipElement.scrollWidth)- )) {- hideTooltip();+ const notebookItemElement = hasClosestByClassName(event.target, "b3-list-item__text");+ if (notebookItemElement && notebookItemElement.parentElement.getAttribute("data-type") === "navigation-root") {+ fetchPost("/api/notebook/getNotebookInfo", {notebook: notebookItemElement.parentElement.parentElement.getAttribute("data-url")}, (response) => {+ const boxData = response.data.boxInfo;+ showTooltip(`${boxData.name} <small class='ft__on-surface'>${boxData.hSize}</small>${boxData.docCount !== 0 ? window.siyuan.languages.includeSubFile.replace("x", boxData.docCount) : ""}<br>${window.siyuan.languages.modifiedAt} ${boxData.hMtime}<br>${window.siyuan.languages.createdAt} ${boxData.hCtime}`,notebookItemElement)+ })+ } else {+ const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true);+ if (!tipElement || (+ tipElement && (tipElement.clientHeight >= tipElement.scrollHeight && tipElement.clientWidth >= tipElement.scrollWidth)+ )) {+ hideTooltip();+ }}}if (window.siyuan.config.editor.floatWindowMode === 1 || window.siyuan.shiftIsPressed) {