BirkbeckCTP / hourglass

Hourglass press theme for OLH
GNU Affero General Public License v3.0
1 stars 1 forks source link

Align CTA lists without gap on last row on large screens #364

Open joemull opened 2 months ago

joemull commented 2 months ago

Describe the bug

The CTA list left uses justify-between to control the in-axis spread of flex items, which causes a gap to appear on the last row if there are three items in most rows and two items in the last row.

Example: https://www.openlibhums.org/site/library-governance/

Screenshot from 2024-04-17 13-51-23

Proposed solution

Instead of this, use justify-around, and adjust the gap so that the items do not run too closely together.

Make sure to check a bunch of different uses of this frequently used component, especially as adjusting a gap in a wrapped flex box can cause items to run to the next row when you do not want them to.

Also considered

Use a grid to more closely control the layout of this component on medium and large screens. Check that it still displays properly in all the places it's currently used.