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

Vanessace9ef11af627
diff --git a/app/src/boot/globalEvent/searchKeydown.ts b/app/src/boot/globalEvent/searchKeydown.ts
index 60d3903e2c..e089102517 100644
--- a/app/src/boot/globalEvent/searchKeydown.ts
+++ b/app/src/boot/globalEvent/searchKeydown.ts
@@ -105,7 +105,8 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {
id,
position: "right",
action: [...action, Constants.CB_GET_HL],
- zoomIn
+ zoomIn,
+ scrollPosition: "center"
});
if (dialog) {
dialog.destroy({focus: "false"});
@@ -226,7 +227,8 @@ export const searchKeydown = (app: App, event: KeyboardEvent) => {
app,
id,
action: [...action, Constants.CB_GET_HL],
- zoomIn
+ zoomIn,
+ scrollPosition: "center"
});
if (dialog) {
dialog.destroy({focus: "false"});
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 88aea98924..d9c1d2aa39 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -821,7 +821,8 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
id,
action: [...action, Constants.CB_GET_HL],
zoomIn,
- position: "right"
+ position: "right",
+ scrollPosition: "center"
});
if (closeCB) {
closeCB();
@@ -860,7 +861,8 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
app,
id,
action: [...action, Constants.CB_GET_HL],
- zoomIn
+ zoomIn,
+ scrollPosition: "center"
});
if (closeCB) {
closeCB();