From a97795a997f9bb3f554ab91166e732b7c04395e8 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:28:17 +0100 Subject: [PATCH] fix(web): show poster in library series rows Co-Authored-By: Claude Sonnet 5 --- web/src/main.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/src/main.ts b/web/src/main.ts index 8055e94..dc66dc4 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -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); });