fix(PluginCard): 移除悬停显示插件版本和描述的过渡效果以简化组件结构

This commit is contained in:
jxxghp
2024-12-30 19:10:49 +08:00
parent de7aeeaeb3
commit 2b5ecf3f8a
+5 -12
View File
@@ -416,18 +416,11 @@ watch(
<VCardTitle class="text-white text-lg px-2 text-shadow whitespace-nowrap overflow-hidden text-ellipsis"> <VCardTitle class="text-white text-lg px-2 text-shadow whitespace-nowrap overflow-hidden text-ellipsis">
<VBadge v-if="props.plugin?.state" dot inline color="success" /> <VBadge v-if="props.plugin?.state" dot inline color="success" />
{{ props.plugin?.plugin_name }} {{ props.plugin?.plugin_name }}
<span v-show="hover.isHovering" class="text-sm mt-1 text-gray-200"> <span class="text-sm mt-1 text-gray-200"> v{{ props.plugin?.plugin_version }} </span>
v{{ props.plugin?.plugin_version }}
</span>
</VCardTitle> </VCardTitle>
<VSlideYTransition> <VCardText class="px-2 py-0 text-white text-sm text-shadow overflow-hidden line-clamp-3 ...">
<VCardText {{ props.plugin?.plugin_desc }}
v-show="hover.isHovering || menuVisible" </VCardText>
class="px-2 py-0 text-white text-sm text-shadow overflow-hidden line-clamp-3 ..."
>
{{ props.plugin?.plugin_desc }}
</VCardText>
</VSlideYTransition>
</div> </div>
<div class="relative flex-shrink-0 self-center"> <div class="relative flex-shrink-0 self-center">
<VAvatar size="64"> <VAvatar size="64">
@@ -452,7 +445,7 @@ watch(
{{ props.plugin?.plugin_author }} {{ props.plugin?.plugin_author }}
</a> </a>
</span> </span>
<span v-if="props.count" v-show="hover.isHovering" class="ms-3"> <span v-if="props.count" class="ms-3">
<VIcon icon="mdi-download" /> <VIcon icon="mdi-download" />
<span class="text-sm ms-1 mt-1">{{ props.count?.toLocaleString() }}</span> <span class="text-sm ms-1 mt-1">{{ props.count?.toLocaleString() }}</span>
</span> </span>