Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: https://github.com/siyuan-note/siyuan/issues/17359

Vanessa8d21c01d3617
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 310680f07d..ae1134b854 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -30,7 +30,7 @@ export const initBlockPopover = (app: App) => {
hasClosestByClassName(event.target, "av__cell");
if (aElement) {
let tooltipClass = "";
- let tip = escapeHtml(aElement.getAttribute("aria-label")) || "";
+ let tip = aElement.getAttribute("aria-label") || "";
if (aElement.classList.contains("av__cell") && !aElement.classList.contains("ariaLabel")) {
if (aElement.classList.contains("av__cell--header")) {
const textElement = aElement.querySelector(".av__celltext");
@@ -79,6 +79,8 @@ export const initBlockPopover = (app: App) => {
if (childElement && childElement.clientWidth < childElement.scrollWidth) {
tip = childElement.textContent;
}
+ } else if (aElement.classList.contains("protyle-attr--memo")) {
+ tip = escapeHtml(tip);
}
let tooltipSpace: number | undefined;
if (!tip && aElement.getAttribute("data-type")?.includes("inline-memo")) {