Browse Source

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

master
Andrew Kingston 5 years ago
parent
commit
f0da6d9fd3
  1. 2
      packages/client/src/components/app/blocks/CardsBlock.svelte

2
packages/client/src/components/app/blocks/CardsBlock.svelte

@ -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

Loading…
Cancel
Save