From 2f10bde3bd590e74a25bb09b6ae968aac1562a08 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Wed, 19 Jul 2023 16:11:10 +0200 Subject: [PATCH] fix: card persona styles --- src/components/ItaliaTheme/Cards/CardPersona.jsx | 12 ++---------- src/theme/ItaliaTheme/Components/_card.scss | 3 --- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/components/ItaliaTheme/Cards/CardPersona.jsx b/src/components/ItaliaTheme/Cards/CardPersona.jsx index e1090fd42..1a15ae8d3 100644 --- a/src/components/ItaliaTheme/Cards/CardPersona.jsx +++ b/src/components/ItaliaTheme/Cards/CardPersona.jsx @@ -26,7 +26,7 @@ export const CardPersona = ({ useOriginal: false, }); - const hasImage = image !== null; + const hasImage = image !== null && showImage; return ( - {listingText && ( - - {listingText} - - )} + {listingText && {listingText}} {showImage && (
{image}
diff --git a/src/theme/ItaliaTheme/Components/_card.scss b/src/theme/ItaliaTheme/Components/_card.scss index e7d7aaa34..1ccc7431c 100644 --- a/src/theme/ItaliaTheme/Components/_card.scss +++ b/src/theme/ItaliaTheme/Components/_card.scss @@ -96,9 +96,6 @@ @include rem-size(font-size, 18); @include rem-size(line-height, 24); font-family: 'Titillium Web' !important; - &.card-with-picture { - width: 60%; - } } } }