rcdexta / react-trello

Pluggable components to add a kanban board to your application
https://rcdexta.com/react-trello/
MIT License
2.19k stars 481 forks source link

Drop Placeholder #481

Open FabioSeixas opened 2 years ago

FabioSeixas commented 2 years ago

Is your feature request related to a problem? Please describe. The user want to better know where the card will go when he drops it.

Describe the solution you'd like The drop placeholder. The same that exists in Trello and also in the first exemple of this demo ( source code )

Describe alternatives you've considered Well, I saw that container from smooth-dnd has an option dropPlaceholder (which is used in the example above). I made myself an fast attempt to clone react-trello and implement this property at src/controllers/Lane and src/dnd/Container but I had no success.

Additional context I think that is it. The urls I provided have the all code I found about the issue. I just want to know what react-trello Maintainers think about it, if it is possible, if it is straight forward or not. If you guys can give me a direction It's possible that I try to implement this.

KaiSpencer commented 2 years ago

Hi @FabioSeixas Im not a maintainer, but smooth-dnd looks like the logic implementation for this.

What issues were you having? Do you have a branch on your fork I could take a look at?