From f0453b0d5a1089aeb3d50192139f258b455af80b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 10 May 2021 13:18:15 -0300 Subject: leave sidebar
collapsed on album pages --- src/upd8.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index 9aa5e76a..6eea053a 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -5765,7 +5765,10 @@ function generateSidebarForAlbum(album, currentTrack, {strings, to, wikiData}) { ${(album.trackGroups ? album.trackGroups.map(({ name, color, startIndex, tracks }) => html.tag('details', { - open: !currentTrack || tracks.includes(currentTrack), + // Leave side8ar track groups collapsed on al8um homepage, + // since there's already a view of all the groups expanded + // in the main content area. + open: currentTrack && tracks.includes(currentTrack), class: tracks.includes(currentTrack) && 'current' }, [ html.tag('summary', -- cgit 1.3.0-6-gf8a5