diff --git a/src/renderer/src/components/DragableList/index.tsx b/src/renderer/src/components/DragableList/index.tsx index 6be5dcd641..5d9acc9429 100644 --- a/src/renderer/src/components/DragableList/index.tsx +++ b/src/renderer/src/components/DragableList/index.tsx @@ -46,23 +46,28 @@ const DragableList: FC> = ({ {(provided) => ( -
+
{list.map((item, index) => { const id = item.id || item return ( - - {(provided) => ( + + {(provided, snapshot) => (
+ style={{ + ...listStyle, + ...provided.draggableProps.style, + marginBottom: index === list.length - 1 && !snapshot.isDragging ? 0 : 8 + }}> {children(item, index)}
)}
) })} + {provided.placeholder}
)}