From ce9ef11af6270ff8901428ac1bab3efa85ef8970 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 22 Nov 2025 23:14:49 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16420 --- app/src/boot/globalEvent/searchKeydown.ts | 6 ++++-- app/src/search/util.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/boot/globalEvent/searchKeydown.ts b/app/src/boot/globalEvent/searchKeydown.ts index 60d3903e2..e08910251 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 88aea9892..d9c1d2aa3 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();