From 4ee17f921e2254165ad913168444fbd27ebd23f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 20 Nov 2021 21:39:12 +0100 Subject: [PATCH] Use 3 first photos only for PosterLayout --- src/components/layouts/PosterLayout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layouts/PosterLayout.svelte b/src/components/layouts/PosterLayout.svelte index c48519a..62d2ef6 100644 --- a/src/components/layouts/PosterLayout.svelte +++ b/src/components/layouts/PosterLayout.svelte @@ -86,7 +86,7 @@ {#if product.photos_preview.length}
- {#each product.photos_preview.slice(0, product.photos_preview.length - 1) as { directus_files_id}, index} + {#each product.photos_preview.slice(0, 3) as { directus_files_id}, index}