summaryrefslogtreecommitdiff
path: root/web/css/layout.css
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-01 12:49:18 +0300
committerPaul Buetow <paul@buetow.org>2026-05-01 12:49:18 +0300
commit8e08f588bd59a2483be721d5664463535ed1d956 (patch)
tree475b012b50ebf1ac55aaa1746ee2f15781a5d503 /web/css/layout.css
parent7e73839aef344012bb11c85d951794039b9933f5 (diff)
Add cover image detection for audio files in scanner
During scanning, when an audio file is found in a directory that also contains an image file (jpg/png/gif), the scanner now assigns that image as the audio file's thumbnail_path. This is common for audiobooks which have cover.jpg alongside the audio files. Changes: - scanner: two-pass walk to collect sibling images, then pair with audio - CSS: add .row-cover style for audio items with covers - JS: render audio rows with cover images when thumbnail_path is set
Diffstat (limited to 'web/css/layout.css')
-rw-r--r--web/css/layout.css9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/css/layout.css b/web/css/layout.css
index ca5acd8..006f874 100644
--- a/web/css/layout.css
+++ b/web/css/layout.css
@@ -230,6 +230,15 @@ body {
white-space: nowrap;
}
+.media-row .row-cover {
+ width: 2.8rem;
+ height: 2.8rem;
+ object-fit: cover;
+ border-radius: var(--radius-sm);
+ flex-shrink: 0;
+ background: var(--bg-elevated);
+}
+
/* Modal */
.modal-overlay {
position: fixed;