An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: https://github.com/siyuan-note/siyuan/pull/15043
Vanessac0fd1f06b876
diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.tsindex c36d20b8c6..f2ae6f938d 100644--- a/app/src/protyle/ui/initUI.ts+++ b/app/src/protyle/ui/initUI.ts@@ -316,12 +316,10 @@ export const setPadding = (protyle: IProtyle) => {// https://github.com/siyuan-note/siyuan/issues/15021protyle.element.style.setProperty("--b3-width-protyle", protyle.element.clientWidth + "px");protyle.element.style.setProperty("--b3-width-protyle-content", protyle.contentElement.clientWidth + "px");-+ const realWidth = protyle.wysiwyg.element.getAttribute("data-realwidth");const newWidth = protyle.wysiwyg.element.clientWidth - paddingLeft - paddingRight;protyle.wysiwyg.element.setAttribute("data-realwidth", newWidth.toString());protyle.element.style.setProperty("--b3-width-protyle-wysiwyg", newWidth.toString() + "px");-- const realWidth = protyle.wysiwyg.element.getAttribute("data-realwidth");return {width: realWidth ? Math.abs(parseFloat(realWidth) - newWidth) : 0,};