diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index cb05e5e13..1791d85c5 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -1534,6 +1534,7 @@ ui: follow: Follow following: Following counts: "{{count}} Results" + counts_loading: "... Results" more: More sort_btns: relevance: Relevance diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml index 9852ba605..6b153e0a5 100644 --- a/i18n/zh_CN.yaml +++ b/i18n/zh_CN.yaml @@ -1501,6 +1501,7 @@ ui: follow: 关注 following: 已关注 counts: "{{count}} 个结果" + counts_loading: "... 个结果" more: 更多 sort_btns: relevance: 相关性 diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsx index 0b015ba68..dbc7565d0 100644 --- a/ui/src/components/Header/index.tsx +++ b/ui/src/components/Header/index.tsx @@ -87,7 +87,6 @@ const Header: FC = () => { if (theme_config?.[theme]?.navbar_style) { // const color = theme_config[theme].navbar_style.startsWith('#') themeMode = isLight(theme_config[theme].navbar_style) ? 'light' : 'dark'; - console.log('isLightTheme', themeMode); navbarStyle = `theme-${themeMode}`; } diff --git a/ui/src/pages/Search/components/SearchHead/index.tsx b/ui/src/pages/Search/components/SearchHead/index.tsx index a175d381b..1bbb6b019 100644 --- a/ui/src/pages/Search/components/SearchHead/index.tsx +++ b/ui/src/pages/Search/components/SearchHead/index.tsx @@ -35,7 +35,11 @@ const Index: FC = ({ sort, count = 0 }) => { return (
-
{t('counts', { count, keyPrefix: 'search' })}
+
+ {count === -1 + ? t('counts_loading', { keyPrefix: 'search' }) + : t('counts', { count, keyPrefix: 'search' })} +
{ - + {isSkeletonShow ? (