« get me outta code hell

various navbar layout/grid improvements - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/track.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-06-21 22:43:54 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-06-21 22:43:54 -0300
commit87588c9305fd76dd75af8eae7a2170f81eff9474 (patch)
tree6a9a1ac3bc0877e9e25b90dbea61315b7975b9f4 /src/page/track.js
parent942052df2375e66a82acd8adbec0131971126e82 (diff)
various navbar layout/grid improvements
Diffstat (limited to 'src/page/track.js')
-rw-r--r--src/page/track.js20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/page/track.js b/src/page/track.js
index 955fe029..c4ec6c59 100644
--- a/src/page/track.js
+++ b/src/page/track.js
@@ -306,6 +306,7 @@ export function write(track, {wikiData}) {
                 }),
 
                 nav: {
+                    linkContainerClasses: ['nav-links-hierarchy'],
                     links: [
                         {toHome: true},
                         {
@@ -322,20 +323,13 @@ export function write(track, {wikiData}) {
                                 track: link.track(track, {class: 'current', to})
                             })
                         },
-                        album.tracks.length > 1 &&
-                        {
-                            divider: false,
-                            html: generateAlbumNavLinks(album, track, {
-                                generatePreviousNextLinks,
-                                language
-                            })
-                        }
                     ].filter(Boolean),
-                    content: fixWS`
-                        <div>
-                            ${generateAlbumChronologyLinks(album, track, {generateChronologyLinks})}
-                        </div>
-                    `
+                    content: generateAlbumChronologyLinks(album, track, {generateChronologyLinks}),
+                    bottomRowContent: (album.tracks.length > 1 &&
+                        generateAlbumNavLinks(album, track, {
+                            generatePreviousNextLinks,
+                            language,
+                        })),
                 },
 
                 secondaryNav: generateAlbumSecondaryNav(album, track, {