Skip to content

Use grid with fixed-size rows vs flex for RHR region layout#1

Open
egargan-ft wants to merge 3 commits intooliverturner:mainfrom
egargan-ft:grid-vs-flex-space-around
Open

Use grid with fixed-size rows vs flex for RHR region layout#1
egargan-ft wants to merge 3 commits intooliverturner:mainfrom
egargan-ft:grid-vs-flex-space-around

Conversation

@egargan-ft
Copy link

This PR changes the way RHR regions are laid-out, using a grid layout vs flex + space-around.

This change aims to prevent content moving around when new items are added "late" to RHR regions with available space, as will likely be the case for the stocks widget.

justify: space-around dictates that child items will be positioned with even spacing between them. Using grid + grid-template-rows: repeat(auto-fill, 1080px); gives us a fixed set of region 'cells', meaning region items will not move around if another item is added to the region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants