From 7ac33b0a3499b07177bfea2b4a29e796bc3121ed Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 1 Sep 2023 23:47:49 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9082 --- app/src/search/util.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index ca15db2e9..dddf7db84 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -756,7 +756,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data, position: "right" }); @@ -796,7 +796,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) { @@ -855,7 +855,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo app, id, position: "right", - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) { @@ -884,7 +884,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo openFileById({ app, id, - action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT], + action: foldResponse.data ? [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL] : [Constants.CB_GET_FOCUS, Constants.CB_GET_SCROLL], zoomIn: foldResponse.data }); if (closeCB) {