mirror of
https://github.com/pvrzz/atmosphere.git
synced 2026-11-29 05:22:26 +00:00
Fix artist photo search, artist placeholders and mini player controls
- Artist photo search: thumbnails are fetched by the app and embedded, so they always show (lazy-loaded web images never started loading) - Artists without a photo show the person placeholder instead of an album cover - Mini player: lyrics centre inside their own box instead of scrolling the whole window, and only the cover shrinks when space is tight, so the controls always show
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ function statsView(root) {
|
||||
const artistRows = a.artists.slice(0, 8).map((e, i) => {
|
||||
const ar = Lib.artists.get(e.key);
|
||||
return h("div", { class: "rank-row", role: "button", tabindex: "0", onclick: () => ar && openLib("artist", ar.key) },
|
||||
h("span", { class: "rank" }, String(i + 1)), cover(ar ? artistImage(ar) : null, "lt-cover round"),
|
||||
h("span", { class: "rank" }, String(i + 1)), cover(ar ? artistImage(ar) : null, "lt-cover round", "", "user"),
|
||||
h("div", { class: "lt-main" }, h("span", { class: "lt-title" }, e.name), h("span", { class: "lt-sub" }, `${plural(e.plays, "play")} · ${fmtHours(e.ms)}`)));
|
||||
});
|
||||
body.append(h("div", { class: "stat-split" },
|
||||
|
||||
Reference in New Issue
Block a user