Skip to content

Commit

Permalink
added last code
Browse files Browse the repository at this point in the history
  • Loading branch information
rubelux committed Oct 18, 2023
1 parent d8642f1 commit b4b6a17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/HomeParts/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ const ProjectCard = ({ seasonIsActive, project, index, totalSales, matchFundPool
</Artist>
)}
<Img
src={`${latestArtifact.artwork?.replace('/upload', '/upload/w_1000').replace('.png', '.jpg')}`}
src={`${latestArtifact.artwork?.replace('/upload', '/upload/c_limit,w_1000').replace('.png', '.jpg')}`}
onClick={() =>
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'),
})
}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProjectPageParts/ArtifactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
})
}
/>
Expand Down

0 comments on commit b4b6a17

Please sign in to comment.