From 4cefbc294b01db27e419dc5486ddae90d34bd65d Mon Sep 17 00:00:00 2001 From: Benny Guo Date: Tue, 22 Aug 2023 20:07:59 +0800 Subject: [PATCH] fix: english text style problem --- src/components/ArticleCard/src/Article.vue | 10 ++++------ .../ArticleCard/src/HorizontalArticle.vue | 14 +++++++------- src/components/Feature/src/FeatureList.vue | 15 ++++++++------- src/locales/languages/en.json | 4 ++-- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/components/ArticleCard/src/Article.vue b/src/components/ArticleCard/src/Article.vue index c54c91f1..e3aef591 100644 --- a/src/components/ArticleCard/src/Article.vue +++ b/src/components/ArticleCard/src/Article.vue @@ -138,12 +138,10 @@ export default defineComponent({ } return { - avatarClasses: computed(() => { - return { - 'hover:opacity-50 cursor-pointer': true, - [appStore.themeConfig.theme.profile_shape]: true - } - }), + avatarClasses: computed(() => ({ + 'hover:opacity-50 cursor-pointer': true, + [appStore.themeConfig.theme.profile_shape]: true + })), gradientBackground: computed(() => { return { background: appStore.themeConfig.theme.header_gradient_css } }), diff --git a/src/components/ArticleCard/src/HorizontalArticle.vue b/src/components/ArticleCard/src/HorizontalArticle.vue index 6675449d..d35bb4e7 100644 --- a/src/components/ArticleCard/src/HorizontalArticle.vue +++ b/src/components/ArticleCard/src/HorizontalArticle.vue @@ -29,7 +29,9 @@ class="-mb-0.5 mr-1" stroke="currentColor" /> - {{ t('settings.featured') }} + + {{ t('settings.featured') }} + @@ -149,12 +151,10 @@ export default defineComponent({ } return { - avatarClass: computed(() => { - return { - 'hover:opacity-50 cursor-pointer': true, - [appStore.themeConfig.theme.profile_shape]: true - } - }), + avatarClass: computed(() => ({ + 'hover:opacity-50 cursor-pointer': true, + [appStore.themeConfig.theme.profile_shape]: true + })), bannerHoverGradient: computed(() => { return { background: appStore.themeConfig.theme.header_gradient_css } }), diff --git a/src/components/Feature/src/FeatureList.vue b/src/components/Feature/src/FeatureList.vue index df380add..b0ed7b56 100644 --- a/src/components/Feature/src/FeatureList.vue +++ b/src/components/Feature/src/FeatureList.vue @@ -8,7 +8,7 @@ >

EDITOR'S SELECTION

- + {{ t('home.recommended') }} @@ -38,9 +38,10 @@