Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/6798

Vanessa95e2ee3aeba6
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 4a760f0266..106ec068f7 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -744,8 +744,8 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
let anchor = linkElement.textContent.replace(Constants.ZWSP, "");
if (!anchor && linkAddress) {
anchor = linkAddress.replace("https://", "").replace("http://", "");
- if (anchor.length > 16) {
- anchor = anchor.substring(0, 16) + "...";
+ if (anchor.length > 24) {
+ anchor = anchor.substring(0, 24) + "...";
}
linkElement.innerHTML = Lute.EscapeHTMLStr(anchor);
}