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

Add option to fill container based on item width instead #86

Open
alimony opened this issue Apr 3, 2021 · 3 comments
Open

Add option to fill container based on item width instead #86

alimony opened this issue Apr 3, 2021 · 3 comments

Comments

@alimony
Copy link

alimony commented Apr 3, 2021

As far as I can tell there is no way to let macy fill the container with items based on the width of each item. In my design, the width of each item is much more important than the exact number of columns at each page width. I would like an option to use whatever number of columns given a fixed column width.

@mortensassi
Copy link

@alimony i have exact the same problem. the only alternative i know that supports width-based columns is desandros/masonry

https://masonry.desandro.com/options.html#columnwidth

https://codepen.io/desandro/pen/osFxj

@alimony
Copy link
Author

alimony commented Apr 8, 2021

Yeah, I'm actually researching alternatives to Masonry because I've found its behaviour buggy lately, maybe because it hasn't kept up with browser development. The last release was three years ago and I don't see much engagement in the issues and PRs either.

@mortensassi
Copy link

@alimony i just switched two of my masonry grids from macy to desandors and it works like a charm! maybe you give it a try. i disabled the animationDuration since it looks shit^^ happy to help if you need assistance

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

2 participants