fix: odd pushdown effect after drag/drop

Apparently when you set your own css-transition properties, it'll cause this known visual bug for react-beautiful-dnd.

See https://github.com/atlassian/react-beautiful-dnd/issues/2086 for more info about this
This commit is contained in:
Chris Holland 2024-10-18 16:53:01 -07:00
parent 4afa1d4458
commit b3b78b058f
No known key found for this signature in database
GPG key ID: 68B0A864B1B0A0D2

View file

@ -110,7 +110,7 @@ function ActivityElement(props: ActivitiyElementProps) {
> >
{(provided, snapshot) => ( {(provided, snapshot) => (
<div <div
className="flex flex-row py-2 my-2 w-full rounded-md bg-gray-50 text-gray-500 hover:bg-gray-100 hover:scale-102 hover:shadow space-x-1 items-center ring-1 ring-inset ring-gray-400/10 shadow-sm transition-all delay-100 duration-75 ease-linear" className="flex flex-row py-2 my-2 w-full rounded-md bg-gray-50 text-gray-500 hover:bg-gray-100 hover:scale-102 hover:shadow space-x-1 items-center ring-1 ring-inset ring-gray-400/10 shadow-sm"
key={props.activity.id} key={props.activity.id}
{...provided.draggableProps} {...provided.draggableProps}
{...provided.dragHandleProps} {...provided.dragHandleProps}