@samitouri / QOSami-HFS / commits / 993fa05d

fix: show: music cover not displayed if "(" is in the name

Massimo Melina committed Jun 20, 2024 at 16:13 UTC 993fa05dc83867adc1818b9d90028f2a33f14443
1 file changed +1 -1
frontend/src/show.ts
+1 -1
@@ -140,7 +140,7 @@ export function fileShow(entry: DirEntry, { startPlaying=false } = {}) {
140 h('div', {}, cur.name),
141 t`Loading failed`
142 ) : h('div', { className: 'showing-container', ref: containerRef },
143 - h('div', { className: 'cover ' + (cover ? '' : 'none'), style: { backgroundImage: `url(${pathEncode(cover)})`, } }),
143 + h('div', { className: 'cover ' + (cover ? '' : 'none'), style: { backgroundImage: `url("${pathEncode(cover)}")`, } }),
144 h(getShowType(cur) || Fragment, {
145 src: cur.uri,
146 className: 'showing',