diff --git a/gulpfile.js b/gulpfile.js index 66e4a31..bf3763f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -43,7 +43,7 @@ const paths = { }, scripts: { src: "./assets/js/**/*.js", - dest: "dist/js", + dest: "dist", }, }, }; @@ -167,4 +167,4 @@ exports.build = (done) => { "baseStylesBuild", "baseScriptsBuild", )(done); -}; \ No newline at end of file +}; diff --git a/saplings_child.libraries.yml b/saplings_child.libraries.yml index 611d9af..34ccf3c 100644 --- a/saplings_child.libraries.yml +++ b/saplings_child.libraries.yml @@ -8,10 +8,6 @@ form: component: dist/css/form/form-required.css: { minified: true } -am: - js: - dist/js/js/am.js: { minified: true } - bs5-lightbox: js: https://cdn.jsdelivr.net/npm/bs5-lightbox@1.8.3/dist/index.bundle.min.js: { type: external, minified: true } diff --git a/templates/overrides/paragaphs/paragraph--media-collection.html.twig b/templates/overrides/paragaphs/paragraph--media-collection.html.twig index babe0e3..b9ebf3e 100644 --- a/templates/overrides/paragaphs/paragraph--media-collection.html.twig +++ b/templates/overrides/paragaphs/paragraph--media-collection.html.twig @@ -49,6 +49,11 @@ ] %} +{% set container_class_string = 'container' %} +{% if paragraph.sa_container.value is not empty %} + {% set container_class_string = ' ' ~ paragraph.sa_container.value %} +{% endif %} + {% set margin_class_string = '' %} {% if paragraph.sa_margin.value is not empty %} {% set margin_class_string = ' ' ~ paragraph.sa_margin.value %} @@ -63,7 +68,7 @@ {% block paragraph %} -
+
{{ image|add_class('img-fluid rounded-start') }} @@ -26,6 +29,9 @@
{% else %} +{% if height %} + {% set attributes = attributes.addClass('h-100') %} +{% endif %} {% if image and image_position != 'bottom' %} {{ image|add_class('card-img-top') }}