Skip to content

Commit c1e41ac

Browse files
committed
fix(workflows): 减少 Jobs 弹出框中的环形统计图空间;调整 name 布局
close #90
1 parent 40d54be commit c1e41ac

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

os-checks/pages/workflows.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@
4040
</span>
4141
</template>
4242

43-
<div v-if="jobsInfo" style="display: flex; justify-content: space-evenly; margin: 5px 10px; gap: 20px;">
43+
<div v-if="jobsInfo" style="display: flex; justify-content: space-evenly; margin: 5px 50px 5px 0px; gap: 20px;">
4444
<WorkflowRatioCard title="Jobs" :data="jobsInfo.jobs" />
4545
<WorkflowRatioCard title="Steps" :data="jobsInfo.steps" />
4646
</div>
4747

4848
<Accordion :value="jobsIdx" multiple>
4949
<AccordionPanel v-for="(job, idx) in jobs" :key="job.job.id" :value="idx.toString()">
5050
<AccordionHeader>
51-
<div>
52-
<Tag :value="idx + 1" :severity="job.job_tag"></Tag>
51+
<Tag :value="idx + 1" :severity="job.job_tag" style="flex-grow: 0"></Tag>
52+
<b style="font-size: large; flex-grow: 1; text-align: center;"> {{ job.job.name }} </b>
53+
<span style="flex-grow: 0; margin-right: 5px; font-size: smaller;">
5354
( {{ job.job_duration_sec }} secs )
54-
</div>
55-
<b style="font-size: large"> {{ job.job.name }} </b>
55+
</span>
5656
</AccordionHeader>
5757

5858
<AccordionContent>
@@ -421,4 +421,9 @@ const jobsInfo = computed(() => {
421421
color: gray;
422422
justify-self: end;
423423
}
424+
425+
.p-card-body {
426+
padding: 0.4rem !important;
427+
gap: 0 !important
428+
}
424429
</style>

0 commit comments

Comments
 (0)