From b4b6a174f10ff26b729121a9475d6a5ab5874e19 Mon Sep 17 00:00:00 2001 From: rubelux Date: Wed, 18 Oct 2023 12:22:39 +0100 Subject: [PATCH] added last code --- src/components/HomeParts/ProjectCard.tsx | 4 ++-- src/components/ProjectPageParts/ArtifactCard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/HomeParts/ProjectCard.tsx b/src/components/HomeParts/ProjectCard.tsx index dcbc2d44..367c2f52 100644 --- a/src/components/HomeParts/ProjectCard.tsx +++ b/src/components/HomeParts/ProjectCard.tsx @@ -50,11 +50,11 @@ const ProjectCard = ({ seasonIsActive, project, index, totalSales, matchFundPool )} setVisibleModalWithAttrs('media', { videoFile: latestArtifact.video, - imageFile: latestArtifact.artwork?.replace('/upload', '/upload/w_1000').replace('.png', '.jpg'), + imageFile: latestArtifact.artwork?.replace('/upload', '/upload/c_limit,w_1000').replace('.png', '.jpg'), }) } /> diff --git a/src/components/ProjectPageParts/ArtifactCard.tsx b/src/components/ProjectPageParts/ArtifactCard.tsx index 92010024..be458b21 100644 --- a/src/components/ProjectPageParts/ArtifactCard.tsx +++ b/src/components/ProjectPageParts/ArtifactCard.tsx @@ -22,7 +22,7 @@ const ArtifactCard = ({ artifact, project, seasonIsActive, count }: IArtifactCar onClick={() => setVisibleModalWithAttrs('media', { videoFile: artifact.video, - imageFile: artifact.artwork?.replace('/upload', '/upload/w_1000').replace('.png', '.jpg'), + imageFile: artifact.artwork?.replace('/upload', '/upload/c_limit,w_1000').replace('.png', '.jpg'), }) } />