diff --git a/src/views/components/common/List/List.tsx b/src/views/components/common/List/List.tsx index 0d02e4ff..5dc1bb9f 100644 --- a/src/views/components/common/List/List.tsx +++ b/src/views/components/common/List/List.tsx @@ -109,16 +109,34 @@ const List: React.FC = ({ ( - { + let { style } = provided.draggableProps; + const transform = style?.transform; + + if (snapshot.isDragging && transform) { + let [x, y] = transform + .replace('translate(', '') + .replace(')', '') + .split(',') + .map((v) => parseInt(v, 10)); + + style.transform = `translate(0px, ${y}px)`; + } - }} - /> + style.fontFamily = "Inter"; + + return ( + )} + } > {provided => (