|
@@ -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");
|