diff options
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generateAlbumSidebarTrackSection.js | 8 |
1 files changed, 5 insertions, 3 deletions
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', { |