Chalarangelo / furl

Functional react.js components.
https://furl.netlify.com/
MIT License
34 stars 2 forks source link

Column sizing #43

Closed Chalarangelo closed 5 years ago

Chalarangelo commented 5 years ago

If a Column component is placed inside a Content component and its size is absolute (i.e. px), there are use-cases where the width of the Column can exceed the parent and cause horizontal overflow.

Possible solution

Change the code from:

flex: 0 0 var(--col-md-size);

to:

flex: 0 0 auto;

This will make columns use the max-width specified alongside them to properly size the column. If the absolute width is greater than the parent, it will shrink accordingly.