Create comonent for collapsing menu entries

This commit is contained in:
2026-02-12 19:42:23 +01:00
parent 6a19b5bc18
commit ec1c8b0f5b
7 changed files with 192 additions and 125 deletions

View File

@@ -40,7 +40,8 @@ export const update = async () => {
siblings = await nav.get_siblings()
for(const sib of siblings) {
if (sib.name === "cover.jpg") {
const lower = sib.name.toLowerCase()
if (lower === "cover.jpg" || lower === "cover.png" || lower === "cover.webp") {
console.debug("Found album cover image", sib)
background_div.style.backgroundImage = `url("/api/filesystem/${sib.path}")`
break