Skip to content

Commit aa24218

Browse files
committed
Use grid over flex for more galleries
1 parent 419d593 commit aa24218

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dotcom-rendering/src/components/MoreGalleries.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ type Props = {
2323
};
2424

2525
const standardCardStyles = css`
26-
flex: 1;
2726
position: relative;
28-
display: flex;
2927
padding: ${space[2]}px;
3028
background-color: ${palette('--onward-more-galleries-card-background')};
3129
@@ -44,13 +42,12 @@ const standardCardStyles = css`
4442

4543
const standardCardsListStyles = css`
4644
width: 100%;
47-
display: flex;
48-
flex-direction: column;
45+
display: grid;
4946
gap: 20px;
5047
margin-bottom: ${space[6]}px;
5148
5249
${from.tablet} {
53-
flex-direction: row;
50+
grid-template-columns: repeat(4, 1fr);
5451
padding-top: ${space[2]}px;
5552
}
5653

0 commit comments

Comments
 (0)