Open mor10 opened 6 years ago
Solution:
set min-width: 0;
on the container holding the select box.
Still curious why the width of the options
element forces the width of the grid column. It obviously interacts with the bounding box in some way, but that interaction is not available anywhere. Style inspector panels still only show the box as the displayed with of the select
element while grid interprets it as the width of options
.
Codepen demo: https://codepen.io/mor10/pen/zWmdPN
Short description: If grid columns are defined using
fr
units and a column contains aselect
element with a very longoption
text, the length of theoption
text defines the width of the grid column, regardless of the width of theselect
element and whetherselect { max-width: 100%; }
is set.