design-comuni-plone-theme 8.8.0 → 8.8.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
 
2
2
 
3
+ ## [8.8.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.8.0...v8.8.1) (2023-11-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix gallery preview image ([f2ddb87](https://github.com/redturtle/design-comuni-plone-theme/commit/f2ddb8798fcdd88cc003791c483240f4d95e3880))
9
+ * fix slider dr dots margin ([8e24914](https://github.com/redturtle/design-comuni-plone-theme/commit/8e2491430c7951cbc87fcf30cb860c1ae0f55460))
10
+ * RSS template div source moved inside condition and changed release.md ([#386](https://github.com/redturtle/design-comuni-plone-theme/issues/386)) ([200fefa](https://github.com/redturtle/design-comuni-plone-theme/commit/200fefad7b0c7596cdcb3109ef5962d53b643626))
11
+ * source added for rss single card ([#384](https://github.com/redturtle/design-comuni-plone-theme/issues/384)) ([669f165](https://github.com/redturtle/design-comuni-plone-theme/commit/669f16575e93944a354119aff4a6dd4ba9cf58b8))
12
+
13
+
14
+ ### Maintenance
15
+
16
+ * preparing release 8.8.1 ([d12c618](https://github.com/redturtle/design-comuni-plone-theme/commit/d12c61899c0cd5b658e6fa38234f90a029b1786c))
17
+
3
18
  ## [8.8.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.7.12...v8.8.0) (2023-10-31)
4
19
 
5
20
 
package/RELEASE.md CHANGED
@@ -41,6 +41,12 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 8.8.1 (03/11/2023)
45
+
46
+ ### Fix
47
+
48
+ - Nei template dei feed RSS ora viene mostrata la sorgente se presente.
49
+
44
50
  ## Versione 8.7.12 (27/10/2023)
45
51
 
46
52
  ### Fix
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "8.8.0",
5
+ "version": "8.8.1",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
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: '2023-10-31'
230
+ releaseDate: '2023-11-03'
231
231
  softwareType: standalone/web
232
- softwareVersion: 8.8.0
232
+ softwareVersion: 8.8.1
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -83,6 +83,11 @@ const CardWithImageRssTemplate = ({
83
83
  </span>{' '}
84
84
  </div>
85
85
  <CardTitle tag="h6">{item.title}</CardTitle>
86
+ {item?.source?.length > 0 && (
87
+ <div className="source-title">
88
+ <span className="source">{item.source}</span>
89
+ </div>
90
+ )}
86
91
  </CardBody>
87
92
  <CardReadMore
88
93
  iconName="it-arrow-right"
@@ -71,6 +71,11 @@ const CardWithoutImageRssTemplate = ({
71
71
  )}
72
72
  </div>
73
73
  <CardTitle tag="h5">{item.title}</CardTitle>
74
+ {item?.source?.length > 0 && (
75
+ <div className="source-title">
76
+ <span className="source">{item.source}</span>
77
+ </div>
78
+ )}
74
79
  <CardText tag="p" className="font-serif">
75
80
  {item.contentSnippet}
76
81
  </CardText>
@@ -32,10 +32,16 @@ const messages = defineMessages({
32
32
  const GalleryPreview = ({ id, viewIndex, setViewIndex, items }) => {
33
33
  const intl = useIntl();
34
34
  const [modalIsOpen, setModalIsOpen] = useState(false);
35
+ const image = items[viewIndex];
35
36
 
36
- const checkUrlImage =
37
- items[viewIndex]?.image?.scales?.larger?.download ||
38
- items[viewIndex]?.image_scales?.image[0]?.scales?.larger?.download;
37
+ let checkUrlImage = image.image_field
38
+ ? image.image_scales?.[image.image_field]?.[0]?.scales?.larger?.download
39
+ : image?.image?.scales?.larger?.download ||
40
+ image?.image_scales?.image[0]?.scales?.larger?.download;
41
+
42
+ if (checkUrlImage?.startsWith('@@')) {
43
+ checkUrlImage = image['@id'] + '/' + checkUrlImage;
44
+ }
39
45
 
40
46
  const closeModal = () => {
41
47
  setViewIndex(null);
@@ -72,12 +78,10 @@ const GalleryPreview = ({ id, viewIndex, setViewIndex, items }) => {
72
78
  closeAriaLabel={intl.formatMessage(messages.close_preview)}
73
79
  toggle={closeModal}
74
80
  >
75
- {items[viewIndex].title}
81
+ {image.title}
76
82
  </ModalHeader>
77
83
  <ModalBody>
78
- {items[viewIndex].description && (
79
- <p className="pb-3">{items[viewIndex].description}</p>
80
- )}
84
+ {image.description && <p className="pb-3">{image.description}</p>}
81
85
  <div className="item-preview">
82
86
  {items.length > 1 && (
83
87
  <Button
@@ -99,7 +103,7 @@ const GalleryPreview = ({ id, viewIndex, setViewIndex, items }) => {
99
103
  <img
100
104
  src={flattenToAppURL(checkUrlImage)}
101
105
  loading="lazy"
102
- alt={items[viewIndex].title}
106
+ alt={image.title}
103
107
  />
104
108
  ) : (
105
109
  <img src={DefaultImageSVG} alt="" />
@@ -1,3 +1,20 @@
1
+ .rssBlock {
2
+ .card {
3
+ .card-body {
4
+ .source-title {
5
+ font-size: $card-category-size;
6
+ text-transform: uppercase;
7
+ color: $card-p-color;
8
+ margin-bottom: $card-category-m-bottom;
9
+ .source {
10
+ font-weight: bold;
11
+ letter-spacing: $card-category-l-spacing;
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+
1
18
  #text-body {
2
19
  .rssBlock {
3
20
  .row > * {
@@ -25,7 +25,7 @@
25
25
  ul.slick-dots {
26
26
  bottom: unset;
27
27
  padding: 0;
28
- margin: 1.5rem 0 0;
28
+ margin: 0 0 0;
29
29
 
30
30
  li {
31
31
  button:before {