From dc1d604739e17c1dab7b458dd5a57e3c5378efa7 Mon Sep 17 00:00:00 2001 From: Martina Bustacchini Date: Mon, 5 Feb 2024 10:29:40 +0100 Subject: [PATCH] fix: use h6 classname in h3 card title to preserve aspect --- .../ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx | 4 +++- .../Blocks/RssBlock/CardWithoutImageRssTemplate.jsx | 4 +++- .../TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx | 2 +- .../TemplatesSkeleton/CardWithoutImageRssTemplateSkeleton.jsx | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx index ecb1d103d..532766739 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx @@ -82,7 +82,9 @@ const CardWithImageRssTemplate = ({ {getViewDate(item.pubDate || item.date, intl.locale)} {' '} - {item.title} + + {item.title} + {item?.source?.length > 0 && (
{item.source} diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx index 905f14caa..927cde691 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx @@ -70,7 +70,9 @@ const CardWithoutImageRssTemplate = ({ )}
- {item.title} + + {item.title} + {item?.source?.length > 0 && (
{item.source} diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx index 7a362b37b..109beac21 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx @@ -34,7 +34,7 @@ const CardWithImageRssTemplateSkeleton = ({ isEditMode, data = {} }) => {
- +
{
- +