From 7357b251e31f7cb27817ac8e75aeb5643b6defe7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 18 Jun 2024 10:05:03 -0300 Subject: content, css: generateContributionTooltip: dynamic divider line --- ...generateContributionTooltipChronologySection.js | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/content/dependencies/generateContributionTooltipChronologySection.js') diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js index 85b19be9..49e5d783 100644 --- a/src/content/dependencies/generateContributionTooltipChronologySection.js +++ b/src/content/dependencies/generateContributionTooltipChronologySection.js @@ -29,23 +29,24 @@ export default { }), generate: (relations, {html, language}) => - language.encapsulate('misc.artistLink.chronology', capsule => [ - html.tag('span', {class: 'chronology-link'}, - {[html.onlyIfContent]: true}, + language.encapsulate('misc.artistLink.chronology', capsule => + html.tags([ + html.tag('span', {class: 'chronology-link'}, + {[html.onlyIfContent]: true}, - language.$(capsule, 'previous', { - [language.onlyIfOptions]: ['thing'], + language.$(capsule, 'previous', { + [language.onlyIfOptions]: ['thing'], - thing: relations.previousLink, - })), + thing: relations.previousLink, + })), - html.tag('span', {class: 'chronology-link'}, - {[html.onlyIfContent]: true}, + html.tag('span', {class: 'chronology-link'}, + {[html.onlyIfContent]: true}, - language.$(capsule, 'next', { - [language.onlyIfOptions]: ['thing'], + language.$(capsule, 'next', { + [language.onlyIfOptions]: ['thing'], - thing: relations.nextLink, - })), - ]), + thing: relations.nextLink, + })), + ])), }; -- cgit 1.3.0-6-gf8a5