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
1 changed files with 1 additions and 1 deletions

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