Skip to content

Commit

Permalink
fix: margins on list component
Browse files Browse the repository at this point in the history
  • Loading branch information
Razboy20 authored and doprz committed Mar 6, 2024
1 parent 74be880 commit cc71389
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/components/common/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ const List: React.FC<ListProps> = ({ draggableElements, itemHeight, listHeight,
<div
{...provided.droppableProps}
ref={provided.innerRef}
style={{ width: `${listWidth}px` }}
className=''
style={{ width: `${listWidth}px`, marginBottom: `-${gap}px` }}
>
{items.map((item, index) => (
<Draggable key={item.id} draggableId={item.id} index={index}>
Expand All @@ -150,7 +149,9 @@ const List: React.FC<ListProps> = ({ draggableElements, itemHeight, listHeight,
marginBottom: `${gap}px`,
}}
>
{React.cloneElement(item.content, { dragHandleProps: draggableProvided.dragHandleProps })}
{React.cloneElement(item.content, {
dragHandleProps: draggableProvided.dragHandleProps,
})}
</div>
)}
</Draggable>
Expand Down

0 comments on commit cc71389

Please sign in to comment.