thoughtis / cata

WordPress parent theme for Thought & Expression Co.
GNU General Public License v3.0
1 stars 0 forks source link

New layout features breaking columns in existing content #125

Closed douglas-johnson closed 1 year ago

douglas-johnson commented 1 year ago

Background

We have been battling the way the columns block works since its creation.

It is been based on a single media query and hasn't provided useful support for flex-wrap. We solved that for ourselves using this PHP class that adds additional CSS classes based on what kind of units are used. That way % based layouts could use the media query and things like vw, em and rem could use flex-wrap / basis.

WordPress has updated the way layout works, and restyled the columns block accordingly.

This new layout system is adding flex-wrap: nowrap to all .wp-block-columns by default, then using the block library CSS to undo nowrap. I don't understand that decision at all and its breaking responsiveness in our existing content.

Details

douglas-johnson commented 1 year ago

Fixed by #156