From c3a970f478caf5d770b1d179acd08fb8d04cf6a9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 6 Sep 2023 10:13:29 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9092 --- app/src/block/popover.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index 8061be1de..aee572654 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -25,8 +25,12 @@ export const initBlockPopover = (app: App) => { if (hasClosestByAttribute(event.target, "data-type", "fold", true)) { tip = window.siyuan.languages.fold; } - if (aElement.classList.contains("av__celltext") && aElement.scrollWidth > aElement.parentElement.clientWidth - 11) { - tip = aElement.textContent; + if (aElement.classList.contains("av__celltext")) { + if (aElement.scrollWidth > aElement.parentElement.clientWidth - 11) { + tip = aElement.textContent; + } else { + return; + } } if (!tip) { tip = aElement.getAttribute("data-href");