style: truncate plugin card descriptions in PluginAppCard and PluginCard

This commit is contained in:
jxxghp
2024-07-14 17:25:56 +08:00
parent 8b0e47103c
commit 731a74905c
2 changed files with 2 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ const dropdownItems = ref([
{{ props.plugin?.plugin_name }}
<span class="text-sm text-gray-200">v{{ props.plugin?.plugin_version }}</span>
</VCardTitle>
<VCardText class="text-white px-2 text-shadow">{{ props.plugin?.plugin_desc }}</VCardText>
<VCardText class="text-white px-2 py-1 text-shadow line-clamp-3">{{ props.plugin?.plugin_desc }}</VCardText>
</div>
<div class="flex-shrink-0 self-center">
<VAvatar size="64">

View File

@@ -415,7 +415,7 @@ watch(
{{ props.plugin?.plugin_name }}
<span class="text-sm mt-1 text-gray-200">v{{ props.plugin?.plugin_version }}</span>
</VCardTitle>
<VCardText class="px-2 text-white text-shadow">
<VCardText class="px-2 py-1 text-white text-shadow line-clamp-3">
{{ props.plugin?.plugin_desc }}
</VCardText>
</div>