Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center align the cards #107

Open
Flaburgan opened this issue Mar 10, 2024 · 0 comments
Open

Center align the cards #107

Flaburgan opened this issue Mar 10, 2024 · 0 comments

Comments

@Flaburgan
Copy link

There is no reason to have cards aligned to the left, as the upcoming card can go before of after with the same probability.

So I would suggest to have cards center aligned like this:

image

I did the needed CSS changes in Flaburgan@bfd6dd6 however I have a weird misalignment when drag and dropping the card.

2024-03-10.14-07-24.mp4

First of all, the gap is initially created on the left of the card which is under the picked card. That is not much an issue for the users, but it shows that the computing point is not at the right place.
And then, you can see this again when the card is actually dropped, it's first displayed on top of the other one and then properly placed.

Could anyone help me investigate this? I guess it isn't a big deal, but I don't know if that's because of something in this repo or in the beautiful-dnd lib config somewhere. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant