diff --git a/web/src/main.ts b/web/src/main.ts index b2e8905..035f05e 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -5040,7 +5040,10 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { if (waived !== null) { chips.append(waived); } - item.append(tag, name, air, chips, actions); + const line = document.createElement("div"); + line.className = "episode-line"; + line.append(tag, name, air, chips, actions); + item.append(line); if (section !== null) { item.append(section.panel); } diff --git a/web/src/style.css b/web/src/style.css index 1142b6e..ef174cd 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1694,14 +1694,20 @@ body { list-style: none; } +/* the row is a strip; the disclosed subtitles panel is a block under it. + Two boxes, not one wrapping line — a row told not to wrap has nowhere to + put the panel, which is how it came to sit beside the episode on a phone */ .episode { + padding: var(--space-2) var(--space-1); + border-bottom: 1px solid oklch(from var(--line) l c h / 45%); + transition: background 150ms var(--ease-out); +} + +.episode-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-2); - padding: var(--space-2) var(--space-1); - border-bottom: 1px solid oklch(from var(--line) l c h / 45%); - transition: background 150ms var(--ease-out); } .ep-tag { @@ -2314,7 +2320,7 @@ body { whether the file is on disk, and the control — everything else is detail you open the desktop for. Hidden, not shrunk: half a date is worse than no date. */ - .episode { + .episode-line { flex-wrap: nowrap; }