Skip to content

Commit 393bea4

Browse files
authored
Merge pull request #8038 from SadeqRouhani/feat/list-card-count
feat(board): show card count next to the list title
2 parents ba0d87f + 4ecbef3 commit 393bea4

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/components/board/Stack.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<CheckCircleOutline v-if="isDoneColumn"
1616
class="stack__done-icon"
1717
decorative />
18+
<span class="stack__card-count">{{ cardsByStack.length }}</span>
1819
</h3>
1920
<h3 v-else-if="!editing"
2021
tabindex="0"
@@ -27,6 +28,7 @@
2728
<CheckCircleOutline v-if="isDoneColumn"
2829
class="stack__done-icon"
2930
decorative />
31+
<span class="stack__card-count">{{ cardsByStack.length }}</span>
3032
</h3>
3133
<form v-else-if="editing"
3234
v-click-outside="cancelEdit"
@@ -475,6 +477,18 @@ export default {
475477
}
476478
}
477479
480+
.stack__card-count {
481+
flex-shrink: 0;
482+
margin-inline-start: 6px;
483+
padding: 0 8px;
484+
border-radius: var(--border-radius-pill, 16px);
485+
background-color: var(--color-background-darker);
486+
color: var(--color-text-maxcontrast);
487+
font-size: var(--default-font-size);
488+
font-weight: normal;
489+
line-height: 1.5;
490+
}
491+
478492
form {
479493
input {
480494
font-weight: bold;

0 commit comments

Comments
 (0)