Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: fix https://github.com/siyuan-note/siyuan/issues/11539

Vanessac4d72c16c3d9
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 1be063d911..4a4aba6baf 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 = `<span style="word-break: break-all">${href.substring(0, Constants.SIZE_TITLE)}</span>`;
const title = aElement.getAttribute("data-title");
if (tip && isLocalPath(href) && !aElement.classList.contains("b3-tooltips")) {
let assetTip = tip;