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
6 changed files with 165 additions and 13 deletions
@@ -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}