From e80e81f4a47a201074f12c6bcd7cf1591a6722e3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 2 May 2026 22:40:34 +0300 Subject: show audiobook covers as cards --- web/js/app.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/web/js/app.js b/web/js/app.js index 104c89e..a0e8893 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -479,23 +479,23 @@ function renderItem(m, index) { `; } - const coverHtml = m.thumbnail_path - ? `` - : '🎵'; return ` -
- ${coverHtml} -
-
${escapeHtml(m.file_name)}
-
${escapeHtml(m.codec || '')} ${m.bitrate ? Math.round(m.bitrate/1000)+'kbps' : ''} ${sizeText ? '• ' + sizeText : ''}
+
+
+ ${m.thumbnail_path ? `` : `No cover`} + ${fmtDur(m.duration)}${sizeText ? ' • ' + sizeText : ''} +
+ + + + + +
+
+
+
${escapeHtml(m.file_name)}
+
${escapeHtml(m.codec || '')} ${m.bitrate ? Math.round(m.bitrate/1000)+'kbps' : ''}
- ${fmtDur(m.duration)} - - - - - -
`; } -- cgit v1.2.3