diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 8003e48b..7304dd9b 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -85,6 +85,9 @@ "search": { "title": "Search Skills", "placeholder": "Search skills...", + "filters": { + "label": "Filter:" + }, "sort": { "label": "Sort:", "relevance": "Relevance", diff --git a/web/src/i18n/locales/zh.json b/web/src/i18n/locales/zh.json index 4aec07c1..e45b549b 100644 --- a/web/src/i18n/locales/zh.json +++ b/web/src/i18n/locales/zh.json @@ -85,6 +85,9 @@ "search": { "title": "搜索技能", "placeholder": "搜索技能...", + "filters": { + "label": "筛选:" + }, "sort": { "label": "排序:", "relevance": "相关性", diff --git a/web/src/pages/search.tsx b/web/src/pages/search.tsx index 50db12b3..053669b9 100644 --- a/web/src/pages/search.tsx +++ b/web/src/pages/search.tsx @@ -140,47 +140,53 @@ export function SearchPage() { - {/* Sort Selector */} -
-
- {t('search.sort.label')} -
- - - - + {/* Sort And Filters */} +
+
+
+ {t('search.sort.label')} +
+ + + +
+ + {resultCount > 0 && ( +
+ {t('search.results', { count: resultCount })} +
+ )}
- {resultCount > 0 && ( -
- {t('search.results', { count: resultCount })} -
- )} +
+ {t('search.filters.label')} + +
{/* Results */}