🎨 Improve tooltip
This commit is contained in:
parent
c55e39ac0d
commit
87469e6b19
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ export const initBlockPopover = (app: App) => {
|
|||
}
|
||||
}
|
||||
} else if (aElement.classList.contains("av__celltext--url")) {
|
||||
tip = tip ? `<span style="word-break: break-all">${tip.substring(0, Constants.SIZE_TITLE)}</span><div class="fn__hr"></div>${aElement.getAttribute("data-name")}` : aElement.getAttribute("data-name");
|
||||
const dataName = aElement.getAttribute("data-name") || "";
|
||||
tip = tip ? `<span style="word-break: break-all">${tip.substring(0, Constants.SIZE_TITLE)}</span>${dataName ? "<div class=\"fn__hr\"></div>" + dataName : ""}` : dataName;
|
||||
tooltipClass = "href";
|
||||
} else if (aElement.classList.contains("av__calc--ashow") && aElement.clientWidth + 2 < aElement.scrollWidth) {
|
||||
tip = aElement.lastChild.textContent + " " + aElement.firstElementChild.textContent;
|
||||
|
|
Loading…
Add table
Reference in a new issue