Vanessa 2023-09-06 10:13:29 +08:00
parent 764ef40ba1
commit c3a970f478

View file

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