An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/3614
Vanessac4fe56bbd5a3
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex 98bf96eead..23c00d5923 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -221,8 +221,9 @@ const setHTML = (options: { content: string, action?: string[], unScroll?: boole}} else if (options.action.includes(Constants.CB_GET_FOCUSFIRST) && !options.unScroll) {// settimeout 时间需短一点,否则定位后快速滚动无效- preventScroll(protyle, 8, 256);- protyle.contentElement.scrollTop = 8;+ const headerHeight = protyle.wysiwyg.element.offsetTop - 16;+ preventScroll(protyle, headerHeight, 256);+ protyle.contentElement.scrollTop = headerHeight;focusBlock(protyle.wysiwyg.element.firstElementChild);/// #if !MOBILEif (!options.action.includes(Constants.CB_GET_UNUNDO)) {