From 8155ad8d22c77c244fe22f070531ff41daf71f64 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 10 Jul 2025 11:51:23 -0300 Subject: content, css: gCTChronologySection: heading slot --- .../dependencies/generateContributionTooltipChronologySection.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/content/dependencies/generateContributionTooltipChronologySection.js') diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js index 5834665d..fb668844 100644 --- a/src/content/dependencies/generateContributionTooltipChronologySection.js +++ b/src/content/dependencies/generateContributionTooltipChronologySection.js @@ -49,12 +49,19 @@ export default { }), slots: { + heading: {type: 'html', mutable: false}, kind: {type: 'string'}, }, generate: (data, relations, slots, {html, language}) => language.encapsulate('misc.artistLink.chronology', capsule => html.tags([ + html.tag('span', {class: 'chronology-heading'}, + {[html.onlyIfContent]: true}, + {[html.onlyIfSiblings]: true}, + + slots.heading), + html.tags([ relations.previousLink?.slots({ attributes: {class: 'chronology-link'}, -- cgit 1.3.0-6-gf8a5