Skip to content

Commit 6fbd41f

Browse files
committed
优化 PluginAppCard 和 PluginCard 组件的样式
1 parent 0181f61 commit 6fbd41f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/cards/PluginAppCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const dropdownItems = ref([
229229
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
230230
>
231231
<div class="flex flex-nowrap items-center w-full pe-10">
232-
<div class="flex flex-nowrap max-w-32">
232+
<div class="flex flex-nowrap max-w-32 items-center align-middle">
233233
<VIcon icon="mdi-github" class="me-1" />
234234
<a
235235
class="overflow-hidden text-ellipsis whitespace-nowrap"
@@ -240,9 +240,9 @@ const dropdownItems = ref([
240240
{{ props.plugin?.plugin_author }}
241241
</a>
242242
</div>
243-
<div v-if="props.count" class="ms-2 flex-shrink-0 download-count">
243+
<div v-if="props.count" class="ms-2 flex-shrink-0 download-count align-middle items-center">
244244
<VIcon size="small" icon="mdi-download" />
245-
<span class="text-sm ms-1 mt-1">{{ props.count?.toLocaleString() }}</span>
245+
<span class="text-sm">{{ props.count?.toLocaleString() }}</span>
246246
</div>
247247
</div>
248248
<div class="absolute bottom-0 right-0">

src/components/cards/PluginCard.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ watch(
384384
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
385385
>
386386
<div class="flex flex-nowrap items-center w-full pe-10">
387-
<div class="flex flex-nowrap max-w-32">
387+
<div class="flex flex-nowrap max-w-32 items-center align-middle">
388388
<VImg :src="authorPath" class="author-avatar" @load="isAvatarLoaded = true">
389389
<VIcon v-if="!isAvatarLoaded" size="small" icon="mdi-github" class="me-1" />
390390
</VImg>
@@ -397,14 +397,14 @@ watch(
397397
{{ props.plugin?.plugin_author }}
398398
</a>
399399
</div>
400-
<span v-if="props.count" class="ms-2 flex-shrink-0 download-count">
400+
<span v-if="props.count" class="ms-2 flex-shrink-0 download-count items-center align-middle">
401401
<VIcon size="small" icon="mdi-download" />
402-
<span class="text-sm ms-1 mt-1">{{ props.count?.toLocaleString() }}</span>
402+
<span class="text-sm">{{ props.count?.toLocaleString() }}</span>
403403
</span>
404404
</div>
405405
<div class="absolute bottom-0 right-0">
406406
<IconBtn>
407-
<VIcon size="small" icon="mdi-dots-vertical" />
407+
<VIcon icon="mdi-dots-vertical" />
408408
<VMenu v-model="menuVisible" activator="parent" close-on-content-click>
409409
<VList>
410410
<VListItem

0 commit comments

Comments
 (0)