From e99e9fa95b58d8eadabeb41c26f4cd5f62e16a27 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 7 Jan 2024 19:59:04 +0800 Subject: [PATCH] style: adjust search bar history items styles --- src/components/SearchBar/SearchBar.vue | 36 ++++++++++---------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index 3ef4843a..b0070a70 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -203,7 +203,7 @@ function handleClearSearchHistory() { v-if=" isFocus && searchHistory.length !== 0 - && suggestions.length === 0 + && keyword.length === 0 " id="search-history" > @@ -218,13 +218,16 @@ function handleClearSearchHistory() {
{{ item.value }} @@ -234,9 +237,9 @@ function handleClearSearchHistory() {
- +