From d175cda07db4d1fc71b971d4a5347c543a113f27 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 22 Oct 2025 09:27:11 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16177 --- app/src/search/util.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index 1e3cf779e..df2520ebf 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -1431,7 +1431,11 @@ ${countHTML} const currentList = element.querySelector(`[data-node-id="${currentData.id}"]`) as HTMLElement; if (currentList) { currentList.classList.add("b3-list-item--focus"); - currentList.scrollIntoView(); + if (!currentList.previousElementSibling && currentList.parentElement.previousElementSibling) { + currentList.parentElement.previousElementSibling.scrollIntoView(); + } else { + currentList.scrollIntoView(); + } } } };