From 7872366448b41bdc45cb82a0a3de398f2f6b488f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 17 Jun 2024 10:42:06 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11715 --- app/src/block/popover.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index 37bd894a1..d667b7ff8 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -20,6 +20,7 @@ export const initBlockPopover = (app: App) => { hasClosestByClassName(event.target, "ariaLabel") || hasClosestByAttribute(event.target, "data-type", "tab-header") || hasClosestByAttribute(event.target, "data-type", "inline-memo") || + hasClosestByClassName(event.target, "av__calc--ashow") || hasClosestByClassName(event.target, "av__cell"); if (aElement) { let tip = aElement.getAttribute("aria-label") || aElement.getAttribute("data-inline-memo-content"); @@ -45,6 +46,8 @@ export const initBlockPopover = (app: App) => { } } else if (aElement.classList.contains("av__celltext--url")) { tip = `${tip.substring(0, Constants.SIZE_TITLE)}
${aElement.getAttribute("data-name")}`; + } else if (aElement.classList.contains("av__calc--ashow") && aElement.clientWidth + 2 < aElement.scrollWidth) { + tip = aElement.lastChild.textContent + " " + aElement.firstElementChild.textContent; } if (!tip) { const href = aElement.getAttribute("data-href") || "";