From 694dd3ccd0ce447b3ebab6f1a65585206b4b69fc Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 2 Feb 2024 21:38:06 -0400 Subject: content: generateAlbumSidebarTrackSection: fix error w/o color --- src/content/dependencies/generateAlbumSidebarTrackSection.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateAlbumSidebarTrackSection.js b/src/content/dependencies/generateAlbumSidebarTrackSection.js index 4f470698..aa5c723d 100644 --- a/src/content/dependencies/generateAlbumSidebarTrackSection.js +++ b/src/content/dependencies/generateAlbumSidebarTrackSection.js @@ -61,10 +61,10 @@ export default { ? language.$('albumSidebar.trackList.fallbackSectionName') : data.name)); - let style; + let colorStyle; if (data.color) { const {primary} = getColors(data.color); - style = `--primary-color: ${primary}`; + colorStyle = {style: `--primary-color: ${primary}`}; } const trackListItems = @@ -113,7 +113,9 @@ export default { {open: true}, [ - html.tag('summary', {style}, + html.tag('summary', + colorStyle, + html.tag('span', (data.hasTrackNumbers ? language.$('albumSidebar.trackList.group.withRange', { -- cgit 1.3.0-6-gf8a5