mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
764ef40ba1
commit
c3a970f478
1 changed files with 6 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue