Skip to content

Add wrapper div for layer group to avoid flex stretching the borders

Martijn Otto requested to merge layer_group_support into master

display: flex will stretch elements so they align nicely in a grid. This does mean that smaller elements will look weird if they have a border - because you will see the empty space above the border.

This is solved by wrapping a div without any styling around it. The div without styling is stretched, while the element with border keeps its normal size - and thus also normal borders.

Merge request reports