feat: tips for empty search result (#900)

This commit is contained in:
洪布斯 2023-01-09 15:50:07 +08:00 committed by GitHub
parent 7c83bd05a5
commit 509eec5f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 21 additions and 9 deletions

View file

@ -87,6 +87,9 @@ const activate = () => {
:result="result" :result="result"
:tabindex="focused ? 0 : -1" :tabindex="focused ? 0 : -1"
/> />
<span v-if="query.length !== 0 && results.length === 0" block text-center text-sm text-secondary>
{{ t('search.search_empty') }}
</span>
</template> </template>
<div v-else> <div v-else>
<SearchResultSkeleton /> <SearchResultSkeleton />

View file

@ -148,7 +148,8 @@
"replying": "Antworten" "replying": "Antworten"
}, },
"search": { "search": {
"search_desc": "Suche nach Accounts & Hashtags" "search_desc": "Suche nach Accounts & Hashtags",
"search_empty": "Nichts für diese Suchbegriffe gefunden"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -183,7 +183,8 @@
"update_available_short": "Update Elk" "update_available_short": "Update Elk"
}, },
"search": { "search": {
"search_desc": "Search for people & hashtags" "search_desc": "Search for people & hashtags",
"search_empty": "Could not find anything for these search terms"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -230,7 +230,8 @@
} }
}, },
"search": { "search": {
"search_desc": "Search for people & hashtags" "search_desc": "Search for people & hashtags",
"search_empty": "Could not find anything for these search terms"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -230,7 +230,8 @@
} }
}, },
"search": { "search": {
"search_desc": "Buscar personas y etiquetas" "search_desc": "Buscar personas y etiquetas",
"search_empty": "No se pudo encontrar nada para estos términos de búsqueda"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -209,7 +209,8 @@
} }
}, },
"search": { "search": {
"search_desc": "Recherche de personnes & hashtags" "search_desc": "Recherche de personnes & hashtags",
"search_empty": "Aucun résultat avec ces mots-clefs"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -187,7 +187,8 @@
"update_available_short": "Update Elk" "update_available_short": "Update Elk"
}, },
"search": { "search": {
"search_desc": "Zoek naar mensen & hashtags" "search_desc": "Zoek naar mensen & hashtags",
"search_empty": "Deze zoektermen leveren geen resultaat op"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -205,7 +205,8 @@
"update_available_short": "Оновити Elk" "update_available_short": "Оновити Elk"
}, },
"search": { "search": {
"search_desc": "Пошук користувачів та хештеґів" "search_desc": "Пошук користувачів та хештеґів",
"search_empty": "Не вдалося знайти нічого, що відповідає цим пошуковим термінам"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -203,7 +203,8 @@
} }
}, },
"search": { "search": {
"search_desc": "搜索用户或话题标签" "search_desc": "搜索用户或话题标签",
"search_empty": "无法找到符合这些搜索词的任何内容"
}, },
"settings": { "settings": {
"about": { "about": {

View file

@ -178,7 +178,8 @@
"update_available_short": "更新鹿鳴" "update_available_short": "更新鹿鳴"
}, },
"search": { "search": {
"search_desc": "搜索用戶或話題標籤" "search_desc": "搜索用戶或話題標籤",
"search_empty": "無法找到符合搜尋條件之結果"
}, },
"settings": { "settings": {
"about": { "about": {