An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lipstick: fix https://github.com/siyuan-note/siyuan/issues/5334
Vanessab2c78cbcebb6
diff --git a/app/src/assets/scss/_tooltips.scss b/app/src/assets/scss/_tooltips.scssindex c2fcbc3c0c..9742f6b6ac 100644--- a/app/src/assets/scss/_tooltips.scss+++ b/app/src/assets/scss/_tooltips.scss@@ -39,6 +39,7 @@max-width: 60vw;overflow: hidden;text-overflow: ellipsis;+ box-sizing: border-box;}&::before {diff --git a/app/src/assets/template/app/index.tpl b/app/src/assets/template/app/index.tplindex 85fd5f6a42..36cbeade03 100644--- a/app/src/assets/template/app/index.tpl+++ b/app/src/assets/template/app/index.tpl@@ -5,6 +5,7 @@<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag<meta http-equiv="Content-Security-Policy" content="script-src 'self'"/>--><style id="editorFontSize" type="text/css"></style>+ <style id="editorAttr" type="text/css"></style></head><body class="fn__flex-column"><div id="loading" class="b3-dialog b3-dialog--open">diff --git a/app/src/assets/template/desktop/index.tpl b/app/src/assets/template/desktop/index.tplindex ad98522011..966cba6414 100644--- a/app/src/assets/template/desktop/index.tpl+++ b/app/src/assets/template/desktop/index.tpl@@ -4,6 +4,7 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover"><style id="editorFontSize" type="text/css"></style>+ <style id="editorAttr" type="text/css"></style></head><body class="fn__flex-column"><div id="loading" class="b3-dialog b3-dialog--open">diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.tsindex 2ebf72bb75..0d544754d9 100644--- a/app/src/protyle/ui/initUI.ts+++ b/app/src/protyle/ui/initUI.ts@@ -85,4 +85,10 @@ export const setPadding = (protyle: IProtyle) => {lineNumberRender(block);});}+ if (window.siyuan.config.editor.displayBookmarkIcon) {+ const editorAttrElement = document.getElementById("editorAttr")+ if (editorAttrElement) {+ editorAttrElement.innerHTML = `.protyle-wysiwyg--attr .b3-tooltips:after { max-width: ${protyle.wysiwyg.element.clientWidth - min16 - min24}px; }`;+ }+ }};