Skip to content

Commit

Permalink
fix: english text style problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 22, 2023
1 parent 4879043 commit 4cefbc2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
10 changes: 4 additions & 6 deletions src/components/ArticleCard/src/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}),
Expand Down
14 changes: 7 additions & 7 deletions src/components/ArticleCard/src/HorizontalArticle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
class="-mb-0.5 mr-1"
stroke="currentColor"
/>
<span>{{ t('settings.featured') }}</span>
<span>
{{ t('settings.featured') }}
</span>
</span>
</b>
<b v-if="post.categories && post.categories.length > 0">
Expand Down Expand Up @@ -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 }
}),
Expand Down
15 changes: 8 additions & 7 deletions src/components/Feature/src/FeatureList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<h2 class="text-3xl pb-8 lg:pb-14">
<p :style="gradientText">EDITOR'S SELECTION</p>
<span class="relative text-xl text-ob-bright font-semibold">
<span class="relative text-lg text-ob-bright font-semibold">
<SvgIcon class="inline-block" icon-class="hot" stroke="white" />
{{ t('home.recommended') }}
</span>
Expand Down Expand Up @@ -38,9 +38,10 @@
<script lang="ts">
import { useAppStore } from '@/stores/app'
import { useI18n } from 'vue-i18n'
import { computed, defineComponent, toRefs } from 'vue'
import { PropType, StyleValue, computed, defineComponent, toRefs } from 'vue'
import { Article } from '@/components/ArticleCard'
import SvgIcon from '@/components/SvgIcon/index.vue'
import { Post } from '@/models/Post.class'
export default defineComponent({
name: 'ObFeatureList',
Expand All @@ -50,7 +51,7 @@ export default defineComponent({
},
props: {
data: {
type: Array,
type: Array as PropType<Post[]>,
required: true
}
},
Expand All @@ -60,11 +61,11 @@ export default defineComponent({
const { t } = useI18n()
return {
gradientBackground: computed(() => {
return { background: appStore.themeConfig.theme.header_gradient_css }
}),
gradientBackground: computed(() => ({
background: appStore.themeConfig.theme.header_gradient_css
})),
gradientText: computed(
() => appStore.themeConfig.theme.background_gradient_style
() => appStore.themeConfig.theme.background_gradient_style as StyleValue
),
featurePosts,
t
Expand Down
4 changes: 2 additions & 2 deletions src/locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"default-tag": "unsorted",
"empty-tag": "No tags right now.",
"empty-recent-comments": "No recent comments right now.",
"pinned": "Pinned",
"featured": "Featured",
"pinned": "Pin",
"featured": "Hot",
"page-views-value": "Site viewed: ",
"site-running-for": "Ran for: ",
"site-running-for-unit": "days",
Expand Down

0 comments on commit 4cefbc2

Please sign in to comment.