1
0
Fork 0
mirror of synced 2024-07-10 08:46:05 +12:00

Ensure horizontal cards in the card block don't exceed the width of the screen

This commit is contained in:
Andrew Kingston 2021-11-25 11:35:19 +00:00
parent 38219f0ea3
commit 63fac77ad1

View file

@ -182,7 +182,7 @@
}}
styles={{
display: "grid",
"grid-template-columns": `repeat(auto-fill, minmax(${cardWidth}px, 1fr))`,
"grid-template-columns": `repeat(auto-fill, minmax(min(${cardWidth}px, 100%), 1fr))`,
}}
>
<BlockComponent