refactor(enhanced-kanban): clean up TaskCard component structure
- Reformatted the TaskCard component for improved readability by adjusting indentation and spacing. - Ensured consistent styling and structure for the drop indicator and task card elements. - Maintained existing functionality while enhancing code clarity and maintainability.
This commit is contained in:
@@ -32,11 +32,13 @@ const TaskCard: React.FC<TaskCardProps> = memo(({
|
|||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height: 80,
|
height: 80,
|
||||||
margin: '8px 0',
|
|
||||||
background: themeMode === 'dark' ? '#2a2a2a' : '#f0f0f0',
|
background: themeMode === 'dark' ? '#2a2a2a' : '#f0f0f0',
|
||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
border: `5px`
|
border: `5px`
|
||||||
}}
|
}}
|
||||||
|
onDragStart={e => onTaskDragStart(e, task.id!, groupId)}
|
||||||
|
onDragOver={e => onTaskDragOver(e, groupId, idx)}
|
||||||
|
onDrop={e => onTaskDrop(e, groupId, idx)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user