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/17853

Vanessacabbf84f1b7f
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 694939912f..d297e30815 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -1313,7 +1313,7 @@ export const inputEvent = (element: Element, config: Config.IUILayoutTabSearchCo
if (rmCurrentCriteria) {
element.querySelector("#criteria .b3-chip--current")?.classList.remove("b3-chip--current");
}
- const listElement = element.querySelector("#searchList") as HTMLElement;
+ const listElement = element.querySelector("#searchList") as HTMLElement;
const loadingElement = element.querySelector(".fn__loading") as HTMLElement;
loadingElement.classList.remove("fn__none");
loadingElement.style.top = listElement.offsetTop + "px";
@@ -1513,7 +1513,7 @@ ${countHTML}
if (!currentList.previousElementSibling && currentList.parentElement.previousElementSibling) {
currentList.parentElement.previousElementSibling.scrollIntoView();
} else {
- currentList.scrollIntoView();
+ currentList.parentElement.scrollTop = currentList.offsetTop - 9;
}
}
}