From 295d7a92df3e5d08cf3eb8d61339f87da366c555 Mon Sep 17 00:00:00 2001 From: shancds Date: Fri, 11 Jul 2025 15:45:47 +0530 Subject: [PATCH] fix(kanban-group): update empty drop zone behavior and visuals - Modified the condition for rendering the empty drop zone to exclude the currently hovered group. - Updated the background gradient colors for the empty drop zone to enhance visual appeal and consistency with the theme. --- .../KanbanGroup.tsx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx index 705c467a..f5e443d2 100644 --- a/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx +++ b/worklenz-frontend/src/components/enhanced-kanban/EnhancedKanbanBoardNativeDnD/KanbanGroup.tsx @@ -480,15 +480,15 @@ const KanbanGroup: React.FC = memo(({ )} {/* If group is empty, render a drop zone */} - {group.tasks.length === 0 && !showNewCardTop && !showNewCardBottom && ( + {group.tasks.length === 0 && !showNewCardTop && !showNewCardBottom && hoveredGroupId !== group.id && (
= memo(({ onDragOver={e => { e.preventDefault(); onTaskDragOver(e, group.id, 0); }} onDrop={e => { e.preventDefault(); onTaskDrop(e, group.id, 0); }} > - {/* Drop indicator at the end of the group */} - {hoveredGroupId === group.id && hoveredTaskIdx === group.tasks.length && ( -
-
-
- )} {(isOwnerOrAdmin || isProjectManager) && !showNewCardTop && !showNewCardBottom && ( )} - - {/* Drop indicator at the end of the group */} - {hoveredGroupId === group.id && hoveredTaskIdx === group.tasks.length && ( -
-
-
- )}