fix: fixed problem where the widget wasn't dropping to nearby by position

This commit is contained in:
paul
2024-09-21 22:47:47 +05:30
parent 3ad39c74d6
commit a440b46e9b
5 changed files with 55 additions and 39 deletions

View File

@@ -24,13 +24,12 @@ export function DraggableWidgetCard({ name, img, url, innerRef}){
}, [url])
useEffect(() => {
}, [])
return (
// <Draggable className="tw-cursor-pointer" id={name}>
<DraggableWrapper data-container={"sidebar"} dragElementType={"widget"} className="tw-cursor-pointer tw-w-fit tw-h-fit">
<DraggableWrapper data-container={"sidebar"}
dragElementType={"widget"}
className="tw-cursor-pointer tw-w-fit tw-h-fit">
<div ref={innerRef} className="tw-select-none tw-h-[200px] tw-w-[230px] tw-flex tw-flex-col
tw-rounded-md tw-overflow-hidden