Skip to content

Commit c568e1c

Browse files
committed
feat: 优化文字样式
1 parent 4642d28 commit c568e1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/pages/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const mangaTotal = computed(() => data.value?.total ?? 0)
236236
class="rounded-md object-cover bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-800"
237237
>
238238
</div>
239-
<div class="mt-1 text-gray-900 dark:text-white font-bold truncate group-hover:text-primary-500 group-hover:dark:text-primary-400">
239+
<div class="mt-1 text-gray-900 dark:text-white font-medium truncate group-hover:text-primary-500 group-hover:dark:text-primary-400">
240240
{{ item.name_cn || item.name || '未知' }}
241241
</div>
242242
<div class="text-sm truncate">

app/pages/search/[keyword].vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const mangaTotal = computed(() => data.value?.results ?? 0)
112112
class="rounded-md object-cover bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-800"
113113
>
114114
</div>
115-
<div class="mt-1 text-gray-900 dark:text-white font-bold truncate group-hover:text-primary-500 group-hover:dark:text-primary-400">
116-
{{ item.name_cn || item.name || '未知' }}
115+
<div class="mt-1 h-[40px] line-clamp-2 font-medium leading-5 text-gray-900 group-hover:text-primary-500 group-hover:dark:text-primary-400">
116+
{{ item.nameCn || item.name || '未知' }}
117117
</div>
118118
<!-- <div class="text-sm truncate">
119119
{{ findInfoBox(item.infobox, '作者') !== '未知' ? findInfoBox(item.infobox, '作者') : findInfoBox(item.infobox, '作画') }}

0 commit comments

Comments
 (0)