From c897ea3b7cd48eccc8b3e8f41d6ccb664bbe39da Mon Sep 17 00:00:00 2001 From: Lennart Van Vaerenbergh Date: Wed, 21 Aug 2024 10:27:14 +0200 Subject: [PATCH 1/2] SGD8-2848: Update timeline frame templates for anchor support --- .../paragraph--timeline-frame--roadmap.html.twig | 4 ++-- .../paragraph--timeline-frame--timeline.html.twig | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--roadmap.html.twig b/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--roadmap.html.twig index 1fa288f30..412b25108 100644 --- a/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--roadmap.html.twig +++ b/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--roadmap.html.twig @@ -45,11 +45,11 @@ {% block paragraph %} {% block content %} {% if first_timeframe == TRUE %} -
+
{% endif %} -

{{ content.title }}

+

{{ content.title }}

{{ content.timeline_items }} diff --git a/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--timeline.html.twig b/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--timeline.html.twig index 55a4a911a..3f254928c 100644 --- a/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--timeline.html.twig +++ b/templates/contrib/paragraphs/timeline/paragraph--timeline-frame--timeline.html.twig @@ -43,15 +43,20 @@ {% set reversed = content.reversed.0 %} {% set first_timeframe = content.first_timeframe.0 %} {% set last_timeframe = content.last_timeframe.0 %} +{% set classes = [ + 'timeline-slot', + items_total is odd ? 'timeline-slot-odd' : 'timeline-slot-even', + reversed ? 'timeline-slot-reverse', +] %} {% block paragraph %} {% block content %} {% if first_timeframe == TRUE %} - +

{{ 'timeline'|t }}

{% endif %} -
+
{% if content.title|render is not empty %}

{{ content.title }}

From 8e477a8e7dd447b5b40998a670a2301e04b8410c Mon Sep 17 00:00:00 2001 From: Lennart Van Vaerenbergh Date: Wed, 21 Aug 2024 10:38:02 +0200 Subject: [PATCH 2/2] Update gent_base to 6.0.0-beta26 --- source/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/package-lock.json b/source/package-lock.json index 0578be237..59333eb48 100644 --- a/source/package-lock.json +++ b/source/package-lock.json @@ -3152,9 +3152,9 @@ } }, "node_modules/gent_styleguide": { - "version": "6.0.0-beta25", - "resolved": "https://registry.npmjs.org/gent_styleguide/-/gent_styleguide-6.0.0-beta25.tgz", - "integrity": "sha512-uJpdRz/0YtDxMxkq0nMPgg2r8VJ719cYU1BK5mUPJWQtrDzoHrePByddn/zceOuU6sqSbK6pjOmcfC9aMfHnBA==", + "version": "6.0.0-beta26", + "resolved": "https://registry.npmjs.org/gent_styleguide/-/gent_styleguide-6.0.0-beta26.tgz", + "integrity": "sha512-cr6HlnVZM5gFEhMH4s6bWSqLY++Rq9b48+bQUGEsod3ZVa3uCuH4LdUD+3qLBtdXHqb/LmAy1HuqxX+Y2rqBvw==", "hasInstallScript": true, "license": "GPL-2.0", "dependencies": {