Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16691

Vanessa2a418613fbb6
diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts
index 1ef92d030a..07cb2e5a05 100644
--- a/app/src/util/highlightById.ts
+++ b/app/src/util/highlightById.ts
@@ -104,7 +104,7 @@ export const scrollCenter = (
const contentRect = protyle.contentElement.getBoundingClientRect();
if (position === "start") {
protyle.contentElement.scroll({
- top: protyle.contentElement.scrollTop + elementRect.top - contentRect.top,
+ top: protyle.contentElement.scrollTop + elementRect.top - contentRect.top - (window.siyuan.config.editor.fontSize * 1.625 * 2 + 24),
behavior
});
return;