wbrowar / craft-grid

A field that lets you content manage CSS Grid in Craft CMS.
Other
18 stars 2 forks source link

adding getLowestBreakpointItems function #7

Open martinherweg opened 5 years ago

martinherweg commented 5 years ago

While working with the Plugin I thought it would be nice to have always the smallest defined layout on the site even greater breakpoints are defined.

So I added a pretty simple solution to this, it finds the lowest defined breakpoint where all items are laid out and uses this as the CSS.

This isn't fully tested, but worked in the simple tests I did. Would be nice if you could consider either adding your own implementation or merge mine and improve it.

Many thanks for your great plugin, Martin

wbrowar commented 5 years ago

Thanks, @martinherweg. I'm trying to work through a big 3.2 compatibility issue and I want to get that out ASAP. I like your PR here and I'll include it in the release following the compatibility update.

Thanks, Will