From 317b911d7945420fa87295a82bee61d77907c07d Mon Sep 17 00:00:00 2001 From: huutech <20178761+huult@users.noreply.github.com> Date: Fri, 14 Nov 2025 22:23:30 +0700 Subject: [PATCH 1/2] Fix keyboard opening and closing quickly when tapping on search field --- src/pages/Search/SearchPageNarrow.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/Search/SearchPageNarrow.tsx b/src/pages/Search/SearchPageNarrow.tsx index 629dbc9dd93c..59ab88b4f355 100644 --- a/src/pages/Search/SearchPageNarrow.tsx +++ b/src/pages/Search/SearchPageNarrow.tsx @@ -193,7 +193,17 @@ function SearchPageNarrow({ /> - + Date: Fri, 14 Nov 2025 22:57:24 +0700 Subject: [PATCH 2/2] add named style --- src/pages/Search/SearchPageNarrow.tsx | 4 +--- src/styles/index.ts | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/Search/SearchPageNarrow.tsx b/src/pages/Search/SearchPageNarrow.tsx index 59ab88b4f355..fe2c390c9f57 100644 --- a/src/pages/Search/SearchPageNarrow.tsx +++ b/src/pages/Search/SearchPageNarrow.tsx @@ -199,9 +199,7 @@ function SearchPageNarrow({ !searchRouterListVisible && styles.narrowSearchRouterInactiveStyle, styles.flex1, styles.bgTransparent, - { - zIndex: variables.searchTopBarZIndex, - }, + styles.searchTopBarZIndexStyle, ]} > diff --git a/src/styles/index.ts b/src/styles/index.ts index 551aef9ed44e..9fa1dbf32e5d 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -6011,6 +6011,9 @@ const plainStyles = (theme: ThemeColors) => layout: {'line-join': 'round', 'line-cap': 'round'}, paint: {'line-color': theme.success, 'line-width': 7}, }, + searchTopBarZIndexStyle: { + zIndex: variables.searchTopBarZIndex, + }, }) satisfies Styles; const styles = (theme: ThemeColors) =>