From 63fac77ad193894f2d6856a55120d3a669b1772e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 25 Nov 2021 11:35:19 +0000 Subject: [PATCH] Ensure horizontal cards in the card block don't exceed the width of the screen --- packages/client/src/components/app/blocks/CardsBlock.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/blocks/CardsBlock.svelte b/packages/client/src/components/app/blocks/CardsBlock.svelte index d5a5f064b6..ec631ede36 100644 --- a/packages/client/src/components/app/blocks/CardsBlock.svelte +++ b/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))`, }} >