« get me outta code hell

content: generateTrackList (etc): better wrapping with chunkwrap - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-03 21:39:37 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-03 21:39:37 -0300
commit5216ac503e849083edd9ea66306c5fb51ffe3139 (patch)
treec89e2f8fc859b3cfc1913ed8a60112dadb16caed /src
parentd4585f24a1bcd0b8ecfef5d7e52e7b8263ee9dc8 (diff)
content: generateTrackList (etc): better wrapping with chunkwrap
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAlbumTrackListItem.js8
-rw-r--r--src/content/dependencies/generateTrackList.js19
-rw-r--r--src/static/site6.css1
3 files changed, 15 insertions, 13 deletions
diff --git a/src/content/dependencies/generateAlbumTrackListItem.js b/src/content/dependencies/generateAlbumTrackListItem.js
index 11b6a1b..1898074 100644
--- a/src/content/dependencies/generateAlbumTrackListItem.js
+++ b/src/content/dependencies/generateAlbumTrackListItem.js
@@ -119,9 +119,11 @@ export default {
       parts.push('withArtists');
       options.by =
         html.tag('span', {class: 'by'},
-          language.$('trackList.item.withArtists.by', {
-            artists: language.formatConjunctionList(relations.contributionLinks),
-          }));
+          html.metatag('chunkwrap', {split: ','},
+            html.resolve(
+              language.$('trackList.item.withArtists.by', {
+                artists: language.formatConjunctionList(relations.contributionLinks),
+              }))));
     }
 
     return html.tag('li',
diff --git a/src/content/dependencies/generateTrackList.js b/src/content/dependencies/generateTrackList.js
index 65f5552..3c36d24 100644
--- a/src/content/dependencies/generateTrackList.js
+++ b/src/content/dependencies/generateTrackList.js
@@ -44,15 +44,16 @@ export default {
                     track: trackLink,
                     by:
                       html.tag('span', {class: 'by'},
-                        language.$('trackList.item.withArtists.by', {
-                          artists:
-                            language.formatConjunctionList(
-                              contributionLinks.map(link =>
-                                link.slots({
-                                  showContribution: slots.showContribution,
-                                  showIcons: slots.showIcons,
-                                }))),
-                        })),
+                        html.metatag('chunkwrap', {split: ','},
+                          language.$('trackList.item.withArtists.by', {
+                            artists:
+                              language.formatConjunctionList(
+                                contributionLinks.map(link =>
+                                  link.slots({
+                                    showContribution: slots.showContribution,
+                                    showIcons: slots.showIcons,
+                                  }))),
+                          }))),
                   }))))));
   },
 };
diff --git a/src/static/site6.css b/src/static/site6.css
index 12ca2a9..ed2bb98 100644
--- a/src/static/site6.css
+++ b/src/static/site6.css
@@ -957,7 +957,6 @@ ul.quick-info li:not(:last-child)::after {
 }
 
 li .by {
-  display: inline-block;
   font-style: oblique;
   max-width: 600px;
 }