fix(web): show poster in library series rows
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
17ad82f541
commit
a97795a997
+4
-8
@@ -2696,12 +2696,7 @@ function seriesRow(
|
||||
roots: Root[],
|
||||
open: (id: number, origin: HTMLElement) => void,
|
||||
): HTMLLIElement {
|
||||
const item = document.createElement("li");
|
||||
const row = document.createElement("button");
|
||||
row.type = "button";
|
||||
row.className = "row row-tmdb";
|
||||
const chips = document.createElement("span");
|
||||
chips.className = "row-chips";
|
||||
const { item, row, body, chips } = richRow();
|
||||
const root = roots.find((candidate) => candidate.id === series.root_id);
|
||||
chips.append(chip(root ? root.audience : `root ${series.root_id}`));
|
||||
if (series.wanted_episodes > 0) {
|
||||
@@ -2723,10 +2718,11 @@ function seriesRow(
|
||||
}),
|
||||
);
|
||||
const affordance = document.createElement("span");
|
||||
affordance.className = "row-add readout";
|
||||
affordance.className = "row-add control readout";
|
||||
affordance.textContent = "episodes";
|
||||
chips.append(affordance);
|
||||
row.append(rowTitle(series.title, series.year), chips);
|
||||
body.append(rowTitle(series.title, series.year), chips);
|
||||
row.append(rowPoster(series.poster_path, series.title), body);
|
||||
row.addEventListener("click", () => {
|
||||
open(series.id, row);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user