whoisandy/react-blocks

Shouldn't flex-wrap be nowrap by default?

Opened this issue · 1 comments

In common use cases I can think of, nowrap would make more sense for page layouts. Flexbox'es strength as I see it is in easily making blocks layout in a row or a column that stretches over its container's width/height with one item filling the available space (or some variation of that), but flex-wrap:wrap makes the view unpredictable since it makes the layout dependent on width/height of the blocks internal content.

It would be extremely helpful to be nowrap by default and to have another property called "wrap" that we can tag it with if we need the wrap ability. The nowrap by default makes it extremely unfriendly for responsive use and we are having to write "hacks" to fix this issue.

Or at the very least create an "unwrap" property we can use to make it behave without the wrapping.