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: scrollGetMore
Vanessa3d7158c6f603
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex 01a6a98021..edef270e76 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -180,7 +180,10 @@ const setHTML = (options: {// 使用动态滚动条定位到最后一个块,重启后无法触发滚动事件,需要再次更新 indexprotyle.scroll.updateIndex(protyle, options.scrollAttr.startId);// https://github.com/siyuan-note/siyuan/issues/8224- if (protyle.wysiwyg.element.clientHeight - parseInt(protyle.wysiwyg.element.style.paddingBottom) < protyle.contentElement.clientHeight) {+ const contentRect = protyle.contentElement.getBoundingClientRect();+ if (protyle.wysiwyg.element.clientHeight - parseInt(protyle.wysiwyg.element.style.paddingBottom) < protyle.contentElement.clientHeight &&+ protyle.wysiwyg.element.lastElementChild.getBoundingClientRect().bottom < contentRect.bottom &&+ protyle.wysiwyg.element.firstElementChild.getBoundingClientRect().top > contentRect.top) {showMessage(window.siyuan.languages.scrollGetMore);}}