From fd15a31026bb8fc7f4c7c4e76adcdc681a013060 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 15 Oct 2024 12:00:43 +0800 Subject: [PATCH] :lipstick: https://github.com/siyuan-note/siyuan/issues/11896 --- app/src/block/popover.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index e949738ca..37c9abb89 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -48,7 +48,7 @@ export const initBlockPopover = (app: App) => { } } } else if (aElement.classList.contains("av__celltext--url")) { - tip = tip ? `${tip.substring(0, Constants.SIZE_TITLE)}
${aElement.getAttribute("data-name")}` : aElement.getAttribute("data-name"); + tip = tip ? `${tip.substring(0, Constants.SIZE_TITLE)}
${aElement.getAttribute("data-name")}` : aElement.getAttribute("data-name"); } else if (aElement.classList.contains("av__calc--ashow") && aElement.clientWidth + 2 < aElement.scrollWidth) { tip = aElement.lastChild.textContent + " " + aElement.firstElementChild.textContent; } @@ -71,16 +71,16 @@ export const initBlockPopover = (app: App) => { fetchPost("/api/asset/statAsset", {path: href}, (response) => { if (response.code === 1) { if (title) { - assetTip += "
" + title; + assetTip += '
' + title; } } else { - assetTip += ` ${response.data.hSize}${title ? "
" + title : ""}
${window.siyuan.languages.modifiedAt} ${response.data.hUpdated}
${window.siyuan.languages.createdAt} ${response.data.hCreated}`; + assetTip += ` ${response.data.hSize}${title ? '
' + title : ""}
${window.siyuan.languages.modifiedAt} ${response.data.hUpdated}
${window.siyuan.languages.createdAt} ${response.data.hCreated}`; } showTooltip(assetTip, aElement); }); tip = ""; } else if (title) { - tip += "
" + title; + tip += '
' + title; } } if (tip && !aElement.classList.contains("b3-tooltips")) {