فهرست منبع

:art: https://github.com/siyuan-note/siyuan/issues/9092

Vanessa 1 سال پیش
والد
کامیت
c3a970f478
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      app/src/block/popover.ts

+ 6 - 2
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");