diff --git a/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx index 54e5734fc..14f76ccf6 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx @@ -118,7 +118,6 @@ const CardWithImageTemplate = (props) => { ) : ( { key={index} /> ) : ( - + {index === 0 && image && (
diff --git a/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx b/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx index eccdcc6f5..fc2194fe9 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/CardWithImageTemplateSkeleton.jsx @@ -41,11 +41,7 @@ const CardWithImageTemplateSkeleton = ({ {[0, 1, 2, 3, 4, 5].map((i) => { return ( - + {/* wrapperClassName="card-overlapping" */} {(i < 3 || always_show_image) && (
diff --git a/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/InEvidenceTemplateSkeleton.jsx b/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/InEvidenceTemplateSkeleton.jsx index 1e6f43e9c..21fef3b44 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/InEvidenceTemplateSkeleton.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/TemplatesSkeletons/InEvidenceTemplateSkeleton.jsx @@ -37,12 +37,7 @@ const InEvidenceTemplateSkeleton = ({
{[0, 1, 2, 3, 4].map((i) => { return ( - + {i === 0 && (
diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx index 9b758507d..bbfbe7b03 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx @@ -53,7 +53,7 @@ const CardWithImageRssTemplate = ({ {items.map((item) => ( - + {item.enclosure?.url && (
diff --git a/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx b/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx index 3f9d3874d..1e1c39bec 100644 --- a/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx +++ b/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx @@ -25,7 +25,7 @@ const CardWithImageRssTemplateSkeleton = ({ isEditMode, data = {} }) => { {[0, 1, 2, 3, 4, 5, 6, 7].map((i) => ( - +
diff --git a/src/components/ItaliaTheme/View/Commons/GenericCard.jsx b/src/components/ItaliaTheme/View/Commons/GenericCard.jsx index 7d9ff5646..bebb718f3 100644 --- a/src/components/ItaliaTheme/View/Commons/GenericCard.jsx +++ b/src/components/ItaliaTheme/View/Commons/GenericCard.jsx @@ -1,11 +1,8 @@ -import React, { useEffect } from 'react'; -import { useDispatch, useSelector } from 'react-redux'; +import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { UniversalLink } from '@plone/volto/components'; -import { getContent, resetContent } from '@plone/volto/actions'; -import { flattenToAppURL } from '@plone/volto/helpers'; import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable'; import { getCalendarDate } from 'design-comuni-plone-theme/helpers'; import { @@ -50,7 +47,9 @@ const GenericCard = ({ )} ); + const cooked_image_field = image_field || item.image_field; + // (item.preview_image ? 'preview_image' : 'image'); const image = showimage && @@ -64,7 +63,7 @@ const GenericCard = ({ return item ? ( image ? ( -
+
{image}
diff --git a/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss b/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss index 927b56e87..9b84d4b26 100644 --- a/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss +++ b/src/theme/ItaliaTheme/Blocks/_cardWithImageAndInEvidence.scss @@ -14,12 +14,6 @@ display: inline; } - img.listing-image { - max-width: 100%; - height: auto; - object-position: center; - } - .img-responsive-wrapper { width: inherit; .img-responsive { diff --git a/src/theme/ItaliaTheme/Blocks/_listing.scss b/src/theme/ItaliaTheme/Blocks/_listing.scss index b3af66a9d..ef18aab83 100644 --- a/src/theme/ItaliaTheme/Blocks/_listing.scss +++ b/src/theme/ItaliaTheme/Blocks/_listing.scss @@ -1,11 +1,6 @@ .block.listing { .full-width { height: unset; - - h2 { - @include rem-size(font-size, 32); - @include rem-size(line-height, 32); - } } .listing-item picture { diff --git a/src/theme/ItaliaTheme/_main.scss b/src/theme/ItaliaTheme/_main.scss index 3e25af991..c7ffd2f2d 100644 --- a/src/theme/ItaliaTheme/_main.scss +++ b/src/theme/ItaliaTheme/_main.scss @@ -51,10 +51,6 @@ a { margin-right: unset; } -.public-ui .text-secondary { - color: $secondary-text !important; -} - ::selection { background-color: default; } diff --git a/src/theme/bootstrap-override/bootstrap-italia/_card.scss b/src/theme/bootstrap-override/bootstrap-italia/_card.scss index ad1fbc3e4..191f62c30 100644 --- a/src/theme/bootstrap-override/bootstrap-italia/_card.scss +++ b/src/theme/bootstrap-override/bootstrap-italia/_card.scss @@ -53,6 +53,12 @@ fill: $gray-secondary; } } + &.rounded { + .img-responsive-wrapper { + border-top-left-radius: $border-radius; + border-top-right-radius: $border-radius; + } + } } a.read-more {