diff --git a/frontend/css/style.css b/frontend/css/style.css index 4b95173..7b6f67d 100644 --- a/frontend/css/style.css +++ b/frontend/css/style.css @@ -1128,6 +1128,7 @@ input { .ranking-art .art-thumb { width: 2.25rem; height: 2.25rem; + align-self: center; /* .ranking li aligns its other cells to baseline, which suits text, not art */ } .ranking-art .meter { @@ -1146,4 +1147,5 @@ input { .log-art .art-thumb { width: 2.25rem; height: 2.25rem; + align-self: center; /* .log li items default to stretch/start, which suits text, not art */ } diff --git a/frontend/js/art.js b/frontend/js/art.js index 9a0e665..35154fb 100644 --- a/frontend/js/art.js +++ b/frontend/js/art.js @@ -20,8 +20,10 @@ export function artThumb(artist, album, extraClass) { } cache.get(key).then((url) => { if (!url) return; // miss or failed fetch: leave the placeholder + // Not revoked: the same URL is shared by every thumbnail for this album on the page + // (see `cache` above), and this is a full-page-reload site, so the browser releases it + // on navigation anyway. const img = h("img", { class: classes, alt: "", loading: "lazy" }); - img.addEventListener("load", () => URL.revokeObjectURL(url), { once: true }); img.src = url; el.replaceWith(img); });