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/7080
Vanessa4db1dc065abf
diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex 4cf506da3c..7bf57d183a 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -457,10 +457,10 @@ export const resizeTabs = () => {}// 保持光标位置不变 https://ld246.com/article/1673704873983/comment/1673765814595#commentsif (!item.element.classList.contains("fn__none") && item.editor.protyle.toolbar.range) {- const wysiwygRect = item.editor.protyle.wysiwyg.element.getBoundingClientRect()+ const protyleRect = item.editor.protyle.element.getBoundingClientRect()const rangeRect = item.editor.protyle.toolbar.range.getBoundingClientRect()- if (wysiwygRect.top > rangeRect.top || wysiwygRect.bottom < rangeRect.bottom) {- item.editor.protyle.toolbar.range.startContainer.parentElement.scrollIntoView(wysiwygRect.top > rangeRect.top);+ if (protyleRect.top + 30 > rangeRect.top || protyleRect.bottom < rangeRect.bottom) {+ item.editor.protyle.toolbar.range.startContainer.parentElement.scrollIntoView(protyleRect.top > rangeRect.top);}}}