From 1be43df75b1fddbb804422d2c7f7e2cfe261112a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Tue, 4 Aug 2026 16:39:23 +0000 Subject: [PATCH] library roots get cover art in the music grid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit they are indexed like any other folder — all six carry cover:true and serve a jpeg — so the root view uses the same card as the folder grid instead of flat gradient tiles. a root that holds tracks directly gets the hover play button for free. Co-Authored-By: Claude Opus 5 --- .../officerdev/src/apps/Music/MusicDetail.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/Music/MusicDetail.tsx b/src/workspaces/officerdev/src/apps/Music/MusicDetail.tsx index 72cdae9f..b1fa40e9 100644 --- a/src/workspaces/officerdev/src/apps/Music/MusicDetail.tsx +++ b/src/workspaces/officerdev/src/apps/Music/MusicDetail.tsx @@ -205,11 +205,11 @@ export const MusicDetail = () => { const crumbs = rel ? rel.split('/') : []; - const Card = ({ r, name, playable }: { r: string; name: string; playable: boolean }) => ( + const Card = ({ r, name, playable, onOpen }: { r: string; name: string; playable: boolean; onOpen?: () => void }) => (
+ r={lib} + name={lib} + playable={(manifest[lib]?.tracks ?? 0) > 0} + onOpen={() => setCwd(`${MUSIC_ROOT}/${lib}`)} + /> ))}
)}