From c4d72c16c3d900fbaaffdda71ac016fb713e9cc4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 27 May 2024 09:36:14 +0800 Subject: [PATCH] :lipstick: fix https://github.com/siyuan-note/siyuan/issues/11539 --- app/src/block/popover.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts index 1be063d91..4a4aba6ba 100644 --- a/app/src/block/popover.ts +++ b/app/src/block/popover.ts @@ -46,7 +46,8 @@ export const initBlockPopover = (app: App) => { } if (!tip) { const href = aElement.getAttribute("data-href") || ""; - tip = href.substring(0, Constants.SIZE_TITLE) || ""; + // 链接地址强制换行 https://github.com/siyuan-note/siyuan/issues/11539 + tip = `${href.substring(0, Constants.SIZE_TITLE)}`; const title = aElement.getAttribute("data-title"); if (tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) { let assetTip = tip;