Skip to content

Commit

Permalink
fix(website):use small image thumbnail in article preview card
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Jan 30, 2025
1 parent 5de2dd3 commit 8d115d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reva-website/src/pages/savoir-plus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const HelpSection = ({ articles }: { articles: ArticleDAide[] }) => {
? textArticleToTruncate.forLongTitle
: textArticleToTruncate.forShortTitle,
})}
thumbnailUrl={article?.vignette.url || ""}
thumbnailUrl={article?.vignette.formats.small.url || ""}
thumbnailAlt={article?.vignette.alternativeText || ""}
url={`/savoir-plus/articles/${article?.slug}`}
/>
Expand Down
1 change: 1 addition & 0 deletions packages/reva-website/src/utils/strapiQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const sectionsQuery = graphql(`
vignette {
url
alternativeText
formats
}
description
}
Expand Down

0 comments on commit 8d115d3

Please sign in to comment.