From 2800f1d50f3f158af19b817d6403cee88bba173b Mon Sep 17 00:00:00 2001 From: Wagner Trezub <60133113+Wagner3UB@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:34:19 +0100 Subject: [PATCH 1/2] fix: gallery grid block scale for index 3 (#492) --- .../ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx index 071351429..0082980f5 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/GridGalleryTemplate.jsx @@ -62,7 +62,7 @@ const GridGalleryTemplate = ({ }); let scale = null; - if (index % 7 === 0 || index % 7 === 6) { + if (index % 7 === 0 || index % 7 === 6 || index % 7 === 3) { scale = 'great'; } if (index % 7 === 1 || index % 7 === 5) { @@ -71,7 +71,6 @@ const GridGalleryTemplate = ({ if (index % 7 === 2 || index % 7 === 4) { scale = 'large'; } - if (scale && item?.image?.scales?.[scale]) { image = ( From 96442927aa9ac3cc85fcf90c8aa64e204231f61b Mon Sep 17 00:00:00 2001 From: Martina Bustacchini <41484878+deodorhunter@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:36:18 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20visualizzazione=20altri=20argomenti?= =?UTF-8?q?=20in=20blocco=20argomenti=20quando=20il=20loro=20numero=20?= =?UTF-8?q?=C3=A8=20esiguo=20(#493)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: visualizzazione altri argomenti in blocco argomenti quando il loro numero è esiguo * fix: use col-lg-auto instead, remove unnecessary text-start class --- RELEASE.md | 6 ++++++ .../ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 2002f3d4b..c4661ced3 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -41,6 +41,12 @@ - ... --> +## Versione X.X.X (dd/mm/yyyy) + +### Fix + +- Risolto un problema di visualizzazione degli argomenti indicati come altri argomenti nel blocco Argomenti quando il loro numero è esiguo + ## Versione 11.3.2 (19/01/2023) ### Fix diff --git a/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx b/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx index 3e9dc4e5c..cfad9c071 100644 --- a/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx +++ b/src/components/ItaliaTheme/Blocks/ArgumentsInEvidence/BottomBody.jsx @@ -17,13 +17,13 @@ const messages = defineMessages({ const BottomBody = ({ data, intl }) => { return data?.arguments?.length > 0 ? ( -
-
+
+
{intl?.formatMessage(messages.otherArguments)}
-
+
{data?.arguments?.map((argument, index) => (