This commit is contained in:
parent
456e53ebfd
commit
c4d72c16c3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue