Skip to content

Commit

Permalink
Add expand card button
Browse files Browse the repository at this point in the history
  • Loading branch information
djjuhasz committed Dec 11, 2024
1 parent 237f99a commit 6f0f06b
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions dashboard/src/components/PreservationActionCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,15 @@ function isComplete(task: EnduroPackagePreservationTask) {
class="mb-2 card"
>
<div class="card-body">
<div class="d-flex flex-row align-start gap-3">
<div class="d-flex flex-row align-start gap-2">
<div class="fd-flex">
<span
class="fs-6 badge rounded-pill border border-primary text-primary"
>
{{ action.tasks.length - index }}
</span>
</div>
<div
class="d-flex flex-column flex-grow-1 align-content-stretch min-w-0"
>
<div class="d-flex flex-column flex-grow-1 min-w-0">
<div class="d-flex flex-wrap pt-1">
<div class="me-auto text-truncate fw-bold">
{{ task.name }}
Expand All @@ -166,12 +164,23 @@ function isComplete(task: EnduroPackagePreservationTask) {
</span>
</div>
</div>
<div class="d-flex flex-row gap-4">
<div class="flex-grow-1 line-break">{{ task.note }}</div>
<div class="d-flex mt-auto">
<div class="line-break">{{ task.note }}</div>
</div>
</div>
<div class="d-flex pt-1">
<StatusBadge :status="task.status" />
<div class="d-flex flex-column pt-1 gap-2">
<div>
<StatusBadge :status="task.status" />
</div>
<div class="mt-auto align-self-end">
<button
type="button"
class="btn btn-link text-primary p-0"
aria-label="Expand"
>
<IconCircleChevronDown />
</button>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 6f0f06b

Please sign in to comment.