fix: update grids to dynamically adapt number of columns + aligned rows
This commit is contained in:
@@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
@media screen and (min-width: 768px) {
|
||||||
.points {
|
.points {
|
||||||
grid-template-rows: auto auto auto;
|
grid-auto-flow: column;
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
row-gap: 0;
|
row-gap: 0;
|
||||||
column-gap: var(--Spacing-x2);
|
column-gap: var(--Spacing-x2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ async function PointsColumn({
|
|||||||
const { formatMessage } = await getIntl()
|
const { formatMessage } = await getIntl()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article>
|
<article className={styles.article}>
|
||||||
<Body
|
<Body
|
||||||
color="white"
|
color="white"
|
||||||
textTransform="bold"
|
textTransform="bold"
|
||||||
|
|||||||
@@ -2,4 +2,8 @@
|
|||||||
.firstRow {
|
.firstRow {
|
||||||
align-content: flex-end;
|
align-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user