paulcollett / react-masonry-css

React Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/react-masonry-css/demo/
MIT License
961 stars 66 forks source link

elements with column span #62

Closed vog3nim closed 4 years ago

vog3nim commented 4 years ago

Hi, I want to create a Dashboard that displays many elements with variable dimensions in a masonry grid. This Component works fine for me, even with the dynamic heights, but I need to stretch some of the elements over 2 columns. Implementing this with css leads to an overlap with the elements around it. Is there any possibility to set some elements wider, without destructing the whole layout or, if not, is this a planned feature for the future?

Thanks in advance

paulcollett commented 4 years ago

Currently this library only works with items that are fixed width. This is a common enough use case that this plugin Is specifically optimized for, both performance and filesize.

Saying that, there is plenty of great bi-directional masonary libraries out there. Hopefully you’ve found something that works for you!