From 470f3bfafdadee4e84065563f747426f2d506b9f Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Tue, 16 Sep 2025 08:44:14 +0200 Subject: [PATCH] style: update SwimlanesBase and TaskCard for improved layout and interaction - Changed the class names in SwimlanesBase to enhance hover effects and spacing. - Adjusted QuickAddTask visibility and styling for better user experience. - Increased font size and opacity in TaskCard for improved readability. - Minor spacing adjustments in SwimlanesBase to maintain visual consistency. --- components/kanban/SwimlanesBase.tsx | 46 ++++++++++++++++------------- components/kanban/TaskCard.tsx | 4 +-- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/components/kanban/SwimlanesBase.tsx b/components/kanban/SwimlanesBase.tsx index d0fba48..5193034 100644 --- a/components/kanban/SwimlanesBase.tsx +++ b/components/kanban/SwimlanesBase.tsx @@ -55,9 +55,9 @@ function DroppableColumn({ }); return ( -
+
t.id)} strategy={verticalListSortingStrategy}> -
+
{tasks.map(task => ( - {/* QuickAdd pour cette colonne */} + {/* QuickAdd pour cette colonne - hors du flux, apparaît au hover */} {onCreateTask && ( -
+ <> {showQuickAdd ? ( - {})} - swimlaneContext={swimlaneContext} - /> +
+ {})} + swimlaneContext={swimlaneContext} + /> +
) : ( - +
+ +
)} -
+ )}
); @@ -230,7 +234,7 @@ export function SwimlanesBase({ {/* Swimlanes */}
-
+
{swimlanes.map(swimlane => { const isCollapsed = collapsedSwimlanes.has(swimlane.key); diff --git a/components/kanban/TaskCard.tsx b/components/kanban/TaskCard.tsx index 8a58318..8b3843b 100644 --- a/components/kanban/TaskCard.tsx +++ b/components/kanban/TaskCard.tsx @@ -124,7 +124,7 @@ export function TaskCard({ task, onDelete, onEdit, onUpdateTitle, compactView = {displayEmojis.slice(0, 1).map((emoji, index) => ( ) : (