An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: fix https://github.com/siyuan-note/siyuan/issues/6042
Vanessa8345eba60271
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.tsindex 730760e743..2d0f8c3a1c 100644--- a/app/src/layout/dock/Outline.ts+++ b/app/src/layout/dock/Outline.ts@@ -220,13 +220,7 @@ export class Outline extends Model {}if (currentElement) {currentElement.classList.add("b3-list-item--focus");- const currentRect = currentElement.getBoundingClientRect();- const scrollRect = this.element.getBoundingClientRect();- if (currentRect.top < scrollRect.top) {- currentElement.scrollIntoView();- } else if (currentRect.bottom > scrollRect.bottom) {- currentElement.scrollIntoView(false);- }+ this.element.scrollTop = currentElement.offsetTop - this.element.clientHeight / 2 - 30;}}