From 2a418613fbb6b978b9696691184d097770e67c26 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 25 Dec 2025 22:41:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16691 --- app/src/util/highlightById.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/highlightById.ts b/app/src/util/highlightById.ts index 1ef92d030..07cb2e5a0 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;