mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix(dashboard): refine scheduler task list
This commit is contained in:
@@ -135,7 +135,17 @@ useDataRefresh(
|
|||||||
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<span class="background-task-status">{{ item.status }}</span>
|
<span class="background-task-status">{{ item.status }}</span>
|
||||||
<VIcon icon="mdi-check-circle" :color="item.progress === 100 ? 'success' : item.color" size="15" />
|
<VIcon
|
||||||
|
:icon="
|
||||||
|
item.progress === undefined
|
||||||
|
? 'mdi-clock-outline'
|
||||||
|
: item.progress === 100
|
||||||
|
? 'mdi-check-circle'
|
||||||
|
: 'mdi-progress-clock'
|
||||||
|
"
|
||||||
|
:color="item.progress === 100 ? 'success' : item.color"
|
||||||
|
size="15"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</VListItem>
|
</VListItem>
|
||||||
<VListItem v-if="backgroundTasks.length === 0">
|
<VListItem v-if="backgroundTasks.length === 0">
|
||||||
@@ -156,7 +166,7 @@ useDataRefresh(
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-list {
|
.card-list {
|
||||||
--v-card-list-gap: 0.2rem;
|
--v-card-list-gap: 0;
|
||||||
|
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-block-size: 0;
|
min-block-size: 0;
|
||||||
@@ -166,11 +176,21 @@ useDataRefresh(
|
|||||||
}
|
}
|
||||||
|
|
||||||
.background-task-item {
|
.background-task-item {
|
||||||
min-block-size: 58px;
|
position: relative;
|
||||||
|
min-block-size: 68px;
|
||||||
|
padding-block: 0.35rem;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-task-item + .background-task-item {
|
.background-task-item + .background-task-item::before {
|
||||||
border-block-start: 1px solid rgba(var(--v-border-color), calc(var(--v-border-opacity) * 0.7));
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
block-size: 1px;
|
||||||
|
background: rgba(var(--v-border-color), calc(var(--v-border-opacity) * 0.7));
|
||||||
|
content: '';
|
||||||
|
inset-block-start: 0;
|
||||||
|
inset-inline: 0.75rem;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-task-title {
|
.background-task-title {
|
||||||
|
|||||||
Reference in New Issue
Block a user