« get me outta code hell

fix nav wrapping issues at small widths - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-06-21 23:13:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-06-21 23:13:05 -0300
commit0a717fec1c1557d40f14d1715f72960d2255cc44 (patch)
treec0b354d4bea4babb3b978e76142f96ab7b398207 /src/page
parent87588c9305fd76dd75af8eae7a2170f81eff9474 (diff)
fix nav wrapping issues at small widths
Diffstat (limited to 'src/page')
-rw-r--r--src/page/album.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/page/album.js b/src/page/album.js
index 472d89f1..030b7778 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -464,7 +464,10 @@ export function generateAlbumNavLinks(album, currentTrack, {
 }
 
 export function generateAlbumChronologyLinks(album, currentTrack, {generateChronologyLinks}) {
-    return html.tag('div', {class: 'nav-chronology-links'}, [
+    return html.tag('div', {
+        [html.onlyIfContent]: true,
+        class: 'nav-chronology-links',
+    }, [
         currentTrack && generateChronologyLinks(currentTrack, {
             contribKey: 'artistContribs',
             getThings: artist => [...artist.tracksAsArtist, ...artist.tracksAsContributor],