mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
优化 SiteCard 组件的样式,调整内边距和布局,改善用户界面
This commit is contained in:
@@ -156,12 +156,12 @@ onMounted(() => {
|
|||||||
@click="handleResourceBrowse"
|
@click="handleResourceBrowse"
|
||||||
:ripple="false"
|
:ripple="false"
|
||||||
>
|
>
|
||||||
<template #image>
|
<VCardItem class="pt-3 pb-0">
|
||||||
<VAvatar class="absolute right-2 bottom-2 rounded" variant="flat" rounded="0">
|
<template #prepend>
|
||||||
<VImg :src="siteIcon" />
|
<VAvatar class="rounded" variant="flat" size="small" rounded>
|
||||||
</VAvatar>
|
<VImg :src="siteIcon" />
|
||||||
</template>
|
</VAvatar>
|
||||||
<VCardItem style="padding-block-end: 0">
|
</template>
|
||||||
<VCardTitle class="font-bold">
|
<VCardTitle class="font-bold">
|
||||||
{{ cardProps.site?.name }}
|
{{ cardProps.site?.name }}
|
||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
@@ -169,7 +169,7 @@ onMounted(() => {
|
|||||||
{{ cardProps.site?.url }}
|
{{ cardProps.site?.url }}
|
||||||
</VCardSubtitle>
|
</VCardSubtitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VCardText class="py-1">
|
<VCardText class="py-0">
|
||||||
<VTooltip v-if="cardProps.site?.limit_interval" text="流控">
|
<VTooltip v-if="cardProps.site?.limit_interval" text="流控">
|
||||||
<template #activator="{ props }">
|
<template #activator="{ props }">
|
||||||
<VIcon color="primary" class="me-2" v-bind="props" icon="mdi-speedometer" />
|
<VIcon color="primary" class="me-2" v-bind="props" icon="mdi-speedometer" />
|
||||||
@@ -191,8 +191,8 @@ onMounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
</VTooltip>
|
</VTooltip>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VCardActions>
|
<VCardActions class="flex justify-between">
|
||||||
<div class="text-sm">
|
<div class="text-sm ms-1 grow">
|
||||||
↑ {{ formatFileSize(cardProps.data?.upload || 0) }} / ↓ {{ formatFileSize(cardProps.data?.download || 0) }}
|
↑ {{ formatFileSize(cardProps.data?.upload || 0) }} / ↓ {{ formatFileSize(cardProps.data?.download || 0) }}
|
||||||
</div>
|
</div>
|
||||||
<IconBtn>
|
<IconBtn>
|
||||||
@@ -232,7 +232,6 @@ onMounted(() => {
|
|||||||
</VList>
|
</VList>
|
||||||
</VMenu>
|
</VMenu>
|
||||||
</IconBtn>
|
</IconBtn>
|
||||||
<VSpacer />
|
|
||||||
</VCardActions>
|
</VCardActions>
|
||||||
<StatIcon v-if="cardProps.site?.is_active" :color="statColor" />
|
<StatIcon v-if="cardProps.site?.is_active" :color="statColor" />
|
||||||
<span class="absolute top-1 right-8">
|
<span class="absolute top-1 right-8">
|
||||||
|
|||||||
Reference in New Issue
Block a user