design-comuni-plone-theme 11.12.2 → 11.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithImage/CardWithImageDefault.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +7 -2
- package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/PhotogalleryTemplate.jsx +3 -2
- package/src/components/ItaliaTheme/Blocks/Listing/SmallBlockLinksTemplate.jsx +1 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.12.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.2...v11.12.3) (2024-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* removed figure tag + added prop for link condition ([#685](https://github.com/RedTurtle/design-comuni-plone-theme/issues/685)) ([601e16c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/601e16c51938aefb45524d8661a901427ff79c86))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* updated publiccode ([79cae20](https://github.com/RedTurtle/design-comuni-plone-theme/commit/79cae2059c5135d4f036eb16b193f072dd176f86))
|
|
14
|
+
|
|
3
15
|
## [11.12.2](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.1...v11.12.2) (2024-05-27)
|
|
4
16
|
|
|
5
17
|
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2024-05-
|
|
230
|
+
releaseDate: '2024-05-28'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.12.
|
|
232
|
+
softwareVersion: 11.12.3
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -102,7 +102,7 @@ const CardWithImageDefault = (props) => {
|
|
|
102
102
|
})}
|
|
103
103
|
>
|
|
104
104
|
<div className="img-responsive img-responsive-panoramic">
|
|
105
|
-
|
|
105
|
+
{image}
|
|
106
106
|
{item['@type'] === 'Event' && (
|
|
107
107
|
<CardCalendar
|
|
108
108
|
start={item.start}
|
|
@@ -11,6 +11,7 @@ const ListingImage = ({
|
|
|
11
11
|
responsive = true,
|
|
12
12
|
showTitleAttr = true,
|
|
13
13
|
sizes = '(max-width:320px) 200px, (max-width:425px) 300px, (max-width:767px) 500px, 410px',
|
|
14
|
+
noWrapLink = false,
|
|
14
15
|
...imageProps
|
|
15
16
|
}) => {
|
|
16
17
|
const Image = config.getComponent({ name: 'Image' }).component;
|
|
@@ -30,8 +31,12 @@ const ListingImage = ({
|
|
|
30
31
|
// photogallery needs to check for null image
|
|
31
32
|
// https://stackoverflow.com/questions/33136399/is-there-a-way-to-tell-if-reactelement-renders-null
|
|
32
33
|
|
|
33
|
-
const image = (
|
|
34
|
-
<UniversalLink item={item}>
|
|
34
|
+
const image = !noWrapLink ? (
|
|
35
|
+
<UniversalLink item={item} className="img-wrapper">
|
|
36
|
+
{Image(commonImageProps)}
|
|
37
|
+
</UniversalLink>
|
|
38
|
+
) : (
|
|
39
|
+
Image(commonImageProps)
|
|
35
40
|
);
|
|
36
41
|
if (image === null)
|
|
37
42
|
return showDefault ? <img src={DefaultImageSVG} alt="" /> : null;
|
|
@@ -109,7 +109,7 @@ const InEvidenceTemplate = (props) => {
|
|
|
109
109
|
{index === 0 && image && (
|
|
110
110
|
<div className="img-responsive-wrapper">
|
|
111
111
|
<div className="img-responsive">
|
|
112
|
-
|
|
112
|
+
{image}
|
|
113
113
|
{item['@type'] === 'Event' && (
|
|
114
114
|
<CardCalendar start={item.start} end={item.end} />
|
|
115
115
|
)}
|