feat: 优化工作流任务卡片和列表视图的布局

This commit is contained in:
jxxghp
2025-02-28 11:19:07 +08:00
parent d5979e6bf3
commit 57efd516c5
2 changed files with 3 additions and 3 deletions

View File

@@ -144,8 +144,8 @@ const resolveProgress = (item: Workflow) => {
}
</script>
<template>
<div>
<VCard class="mx-auto" @click="handleFlow(workflow)" :ripple="false" :loading="loading" :disabled="loading">
<div class="h-full">
<VCard class="mx-auto h-full" @click="handleFlow(workflow)" :ripple="false" :loading="loading" :disabled="loading">
<VCardItem class="py-3" :class="`bg-${resolveStatusVariant(workflow?.state).color}`">
<template #prepend>
<VAvatar variant="text" class="me-2">

View File

@@ -47,7 +47,7 @@ onActivated(() => {
<template>
<div>
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
<VRow v-if="workflowList.length > 0">
<VRow v-if="workflowList.length > 0" class="match-height">
<VCol cols="12" md="6" lg="4" v-for="item in workflowList" :key="item.id">
<WorkflowTaskCard :workflow="item" @refresh="fetchData" />
</VCol>