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/13966
Vanessa19a37f19a324
diff --git a/app/src/block/popover.ts b/app/src/block/popover.tsindex 12bb40ceeb..2549e3c634 100644--- a/app/src/block/popover.ts+++ b/app/src/block/popover.ts@@ -107,26 +107,12 @@ export const initBlockPopover = (app: App) => {tip += '<div class="fn__hr"></div><span>' + title + "</span>";}}- if (tip && !aElement.classList.contains("b3-tooltips")) {- // https://github.com/siyuan-note/siyuan/issues/11294- try {- showTooltip(decodeURIComponent(tip), aElement, tooltipClass);- } catch (e) {- // https://ld246.com/article/1718235737991- showTooltip(tip, aElement, tooltipClass);- }- event.stopPropagation();- } else {- hideTooltip();- }- } else if (!aElement) {+notebookItemElement = hasClosestByClassName(event.target, "b3-list-item__text");if (notebookItemElement && notebookItemElement.parentElement.getAttribute("data-type") === "navigation-root") {- showTooltip(notebookItemElement.getAttribute("aria-label") || "", notebookItemElement);fetchPost("/api/notebook/getNotebookInfo", {notebook: notebookItemElement.parentElement.parentElement.getAttribute("data-url")}, (response) => {const boxData = response.data.boxInfo;const tip = `${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}`;-const scopeNotebookItemElement = hasClosestByClassName(event.target, "b3-list-item__text");if (notebookItemElement && scopeNotebookItemElement && notebookItemElement.isSameNode(scopeNotebookItemElement)) {showTooltip(tip, notebookItemElement);@@ -137,13 +123,26 @@ export const initBlockPopover = (app: App) => {scopeNotebookItemElement.setAttribute("aria-label", tip);}});- } else {- const tipElement = hasClosestByAttribute(event.target, "id", "tooltip", true);- if (!tipElement || (- tipElement && (tipElement.clientHeight >= tipElement.scrollHeight && tipElement.clientWidth >= tipElement.scrollWidth)- )) {- hideTooltip();+ }++ if (tip && !aElement.classList.contains("b3-tooltips")) {+ // https://github.com/siyuan-note/siyuan/issues/11294+ try {+ showTooltip(decodeURIComponent(tip), aElement, tooltipClass);+ } catch (e) {+ // https://ld246.com/article/1718235737991+ showTooltip(tip, aElement, tooltipClass);}+ event.stopPropagation();+ } else {+ hideTooltip();+ }+ } else if (!aElement) {+ 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) {diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex edbc94d032..2f82c9da6f 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -813,7 +813,7 @@ data-type="navigation-root" data-path="/"><svg class="b3-list-item__arrow"><use xlink:href="#iconRight"></use></svg></span>${emojiHTML}- <span class="b3-list-item__text" data-position="parentE">${escapeHtml(item.name)}</span>+ <span class="b3-list-item__text ariaLabel" data-position="parentE">${escapeHtml(item.name)}</span><span data-type="more-root" class="b3-list-item__action b3-tooltips b3-tooltips__w${(window.siyuan.config.readonly) ? " fn__none" : ""}" aria-label="${window.siyuan.languages.more}"><svg><use xlink:href="#iconMore"></use></svg></span>