From 7cb7f029625302dcdc185efa7e0539bb09bfcf2b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 28 Feb 2023 19:42:07 -0400 Subject: fix summary els not looking right on Safari --- src/page/album.js | 4 ++-- src/page/group.js | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/page') diff --git a/src/page/album.js b/src/page/album.js index f4578ac..24033b1 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -549,7 +549,7 @@ export function generateAlbumSidebar(album, currentTrack, { html.tag( 'summary', {style: getLinkThemeString(color)}, - [ + html.tag('span', [ listTag === 'ol' && language.$('albumSidebar.trackList.group.withRange', { group: groupName, @@ -561,7 +561,7 @@ export function generateAlbumSidebar(album, currentTrack, { language.$('albumSidebar.trackList.group', { group: groupName, }), - ]), + ])), html.tag(listTag, listTag === 'ol' ? {start: startIndex + 1} : {}, tracks.map(trackToListItem)), diff --git a/src/page/group.js b/src/page/group.js index 9a48c1d..81e1728 100644 --- a/src/page/group.js +++ b/src/page/group.js @@ -247,9 +247,10 @@ function generateGroupSidebar(currentGroup, isGallery, { [ html.tag('summary', {style: getLinkThemeString(category.color)}, - language.$('groupSidebar.groupList.category', { - category: `${category.name}`, - })), + html.tag('span', + language.$('groupSidebar.groupList.category', { + category: `${category.name}`, + }))), html.tag('ul', category.groups.map((group) => { const linkKey = ( -- cgit 1.3.0-6-gf8a5