diff --git a/components/ListPageDisplays/ArticleCard.js b/components/ListPageDisplays/ArticleCard.js index b12cb23a..239a6b18 100644 --- a/components/ListPageDisplays/ArticleCard.js +++ b/components/ListPageDisplays/ArticleCard.js @@ -88,6 +88,7 @@ const useStyles = makeStyles(theme => ({ attachment: { minWidth: 0, // Don't use intrinsic image width as flex item min-size maxHeight: '10em', // Don't let image rows take too much vertical space + margin: '0 1em 0 0', // Add right margin that separate attachment and text with a space }, })); @@ -122,6 +123,7 @@ function ArticleCard({ article, highlight = '' }) { {c('Info box').t`reports`} + {(text || highlight) && ( {highlight @@ -129,7 +131,6 @@ function ArticleCard({ article, highlight = '' }) { : text} )} - diff --git a/components/ListPageDisplays/__snapshots__/ListPageCards.stories.storyshot b/components/ListPageDisplays/__snapshots__/ListPageCards.stories.storyshot index 00579990..5d657009 100644 --- a/components/ListPageDisplays/__snapshots__/ListPageCards.stories.storyshot +++ b/components/ListPageDisplays/__snapshots__/ListPageCards.stories.storyshot @@ -83,6 +83,19 @@ exports[`Storyshots ListPageDisplays/ListPageCards Article Cards 1`] = ` + - @@ -210,6 +210,19 @@ exports[`Storyshots ListPageDisplays/ListPageCards Article Cards 1`] = ` + -