show: display comment
Massimo Melina committed
Jun 7, 2026 at 12:33 UTC
54381ab6c52f6bce811d3ac240db9f5db9c89a33
2 files changed
+3
-1
frontend/src/index.scss
+1
@@ -792,6 +792,7 @@ form label+input { margin-top: .2em; }
792
}
793
}
794
795
+ .folder, .entry-comment { font-size: small; margin-bottom: 0; }
796
.showing-container {
797
width: 100%;
798
height: 100%;
frontend/src/show.ts
+2
-1
@@ -151,7 +151,8 @@ export function fileShow(entry: DirEntry, { startPlaying=false, startShuffle=fal
151
}
152
},
153
h('div', { className: 'bar' },
154
- h('div', { className: 'filename' }, h('small', {}, folder), cur.n.slice(folder.length)),
154
+ h('div', { className: 'filename' }, h('span', { className: 'folder' }, folder), cur.n.slice(folder.length)),
155
+ cur.comment && h('div', { className: 'entry-comment' }, cur.comment),
156
h('div', { className: 'controls' }, // keep on same row
157
h(EntryDetails, { entry: cur, midnight: useMidnight() }),
158
useWindowSize().width > 800 && iconBtn('?', showHelp),