mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
This commit is contained in:
parent
81ef5d0244
commit
e9c8cd0e0d
6 changed files with 87 additions and 38 deletions
|
|
@ -28,12 +28,7 @@ export const initBlockPopover = (app: App) => {
|
|||
let tooltipClass = "";
|
||||
let tip = aElement.getAttribute("aria-label");
|
||||
if (aElement.classList.contains("av__cell")) {
|
||||
if (aElement.classList.contains("av__cell--header")) {
|
||||
const textElement = aElement.querySelector(".av__celltext");
|
||||
if (textElement.scrollWidth > textElement.clientWidth + 2) {
|
||||
tip = getCellText(aElement);
|
||||
}
|
||||
} else {
|
||||
if (!aElement.classList.contains("av__cell--header")) {
|
||||
if (aElement.firstElementChild?.getAttribute("data-type") === "url") {
|
||||
if (aElement.firstElementChild.textContent.indexOf("...") > -1) {
|
||||
tip = Lute.EscapeHTMLStr(aElement.firstElementChild.getAttribute("data-href"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue