« get me outta code hell

quick tweaks for site release (limit 4 icons per artist) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-14 00:53:55 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-14 00:53:55 -0300
commitdb8f05dfb49e0774ff8cc17252facde6248d455a (patch)
tree66d87f55179ee0b74688ba029dbb37c6bb5c7468 /src/misc-templates.js
parent54509b203a2119fa66c09bef6da4a2fccf8219e8 (diff)
quick tweaks for site release (limit 4 icons per artist)
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 867193c7..b7c64597 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -104,9 +104,9 @@ function unbound_getArtistString(artists, {
             class: 'icons'
           },
           language.formatUnitList(
-            urls.map(url => iconifyURL(url, {language}))));
+            urls.slice(0, 4).map(url => iconifyURL(url, {language}))));
 
-      return (
+      return html.tag('span', {class: 'nowrap'},
         (hasContribPart
           ? (hasExternalPart
               ? language.$('misc.artistLink.withContribution.withExternalLinks', {
@@ -125,8 +125,7 @@ function unbound_getArtistString(artists, {
                 })
               : language.$('misc.artistLink', {
                   artist: artistLink,
-                })))
-      );
+                }))));
     }));
 }