From dc7b7c761644c4f1719d52341eed1564e6509556 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Tue, 30 Sep 2025 10:19:34 +0200 Subject: [PATCH] feat: update TaskCard component to include todosCount in padding logic - Modified padding logic to account for `todosCount`, ensuring proper spacing when there are todos present. - Updated footer visibility condition to include `todosCount`, enhancing the display of task metadata based on the presence of todos. --- src/components/ui/TaskCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/TaskCard.tsx b/src/components/ui/TaskCard.tsx index 5f1c6ea..23888ad 100644 --- a/src/components/ui/TaskCard.tsx +++ b/src/components/ui/TaskCard.tsx @@ -328,7 +328,7 @@ const TaskCard = forwardRef( )} {...props} > -
+
0)) ? 'pb-2' : 'pb-0'}`} style={sourceStyles}> {/* Header */}
{/* Emojis */} @@ -442,7 +442,7 @@ const TaskCard = forwardRef( )} {/* Footer avec métadonnées */} - {(dueDate || (source && source !== 'manual') || completedAt) && ( + {(dueDate || (source && source !== 'manual') || completedAt || (todosCount !== undefined && todosCount > 0)) && (
{/* Date d'échéance */}