@openeuropa/bcl-listing 0.17.0 → 0.20.0
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/listing.html.twig +10 -3
- package/package.json +4 -4
package/listing.html.twig
CHANGED
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
{% set _max_width = '' %}
|
|
48
48
|
{% set _image = {} %}
|
|
49
49
|
{% if _card.image is not empty %}
|
|
50
|
-
{% set
|
|
50
|
+
{% set _image_classes = _card.image.classes ?: '' %}
|
|
51
51
|
{% if not _alignment == 'center' %}
|
|
52
|
-
{% set _image_classes =
|
|
52
|
+
{% set _image_classes = _image_classes ? _image_classes ~ ' mb-3' : 'mb-3' %}
|
|
53
53
|
{% endif %}
|
|
54
|
+
{% set _max_width = 'mw-listing-img' %}
|
|
54
55
|
{% set _card = _card|merge({image: _card.image|merge({
|
|
55
|
-
classes: _image_classes
|
|
56
|
+
classes: _image_classes,
|
|
56
57
|
})}) %}
|
|
57
58
|
{% elseif _card.date is not empty %}
|
|
58
59
|
{% set _max_width = 'mw-date mb-3' %}
|
|
@@ -168,6 +169,12 @@
|
|
|
168
169
|
{% endif %}
|
|
169
170
|
{% endif %}
|
|
170
171
|
|
|
172
|
+
{% if _card.image is empty and _card.date is empty %}
|
|
173
|
+
{% set _card = _card|merge({
|
|
174
|
+
horizontal: false,
|
|
175
|
+
}) %}
|
|
176
|
+
{% endif %}
|
|
177
|
+
|
|
171
178
|
{% set _cards = _cards|merge([_card]) %}
|
|
172
179
|
{% endfor %}
|
|
173
180
|
{% endif %}
|
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-listing",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.20.0",
|
|
6
6
|
"description": "OE - BCL Listing",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
12
|
-
"@openeuropa/bcl-link": "^0.
|
|
11
|
+
"@openeuropa/bcl-card-layout": "^0.20.0",
|
|
12
|
+
"@openeuropa/bcl-link": "^0.20.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"design-system",
|
|
26
26
|
"twig"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ea13560489a089d0c198f781e75951a9160d2554"
|
|
29
29
|
}
|