mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
feat: enhance plugin tags display with improved styling and layout
This commit is contained in:
@@ -177,14 +177,14 @@ const dropdownItems = ref([
|
|||||||
{{ props.plugin?.plugin_desc }}
|
{{ props.plugin?.plugin_desc }}
|
||||||
</div>
|
</div>
|
||||||
<!-- 插件标签 -->
|
<!-- 插件标签 -->
|
||||||
<div v-if="pluginLabels.length > 0" class="plugin-app-card__tags-section px-2">
|
<div v-if="pluginLabels.length > 0" class="plugin-app-card__tags-section px-2 mb-2">
|
||||||
<VChip
|
<VChip
|
||||||
v-for="tag in pluginLabels"
|
v-for="tag in pluginLabels"
|
||||||
:key="tag"
|
:key="tag"
|
||||||
size="x-small"
|
size="x-small"
|
||||||
variant="tonal"
|
variant="tonal"
|
||||||
color="info"
|
color="info"
|
||||||
class="me-1 mb-1"
|
class="plugin-app-card__tag"
|
||||||
tile
|
tile
|
||||||
>
|
>
|
||||||
{{ tag }}
|
{{ tag }}
|
||||||
@@ -246,3 +246,25 @@ const dropdownItems = ref([
|
|||||||
</VHover>
|
</VHover>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.plugin-app-card__tags-section {
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
gap: 4px;
|
||||||
|
max-inline-size: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-app-card__tag {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
max-inline-size: 100%;
|
||||||
|
min-inline-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-app-card__tag :deep(.v-chip__content) {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user