1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

feat: Display comments total on front of cards (#1146)

Closes #1136
This commit is contained in:
Hannes 2025-05-23 17:31:28 +02:00 committed by GitHub
parent f9d3e73651
commit 4049b4c396
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 165 additions and 13 deletions

View file

@ -114,6 +114,7 @@ const ProjectContent = React.memo(({ cardId }) => {
card.description ||
card.dueDate ||
card.stopwatch ||
card.commentsTotal > 0 ||
attachmentsTotal > 0 ||
notificationsTotal > 0 ||
listName;
@ -226,6 +227,14 @@ const ProjectContent = React.memo(({ cardId }) => {
</span>
</span>
)}
{card.commentsTotal > 0 && (
<span className={classNames(styles.attachment, styles.attachmentLeft)}>
<span className={styles.attachmentContent}>
<Icon name="comment outline" />
{card.commentsTotal}
</span>
</span>
)}
</span>
)}
{!isCompact && usersNode}