From 9d2b818c5223872514c61ce300bbf763b8e3c15d Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 26 Aug 2026 20:12:21 +0100 Subject: [PATCH] fix(web): drop the subtitles panel below the episode row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The row and its disclosed panel were siblings in one wrapping flex line, which only stacked them by accident of flex-basis: 100%. At phone width the row is told not to wrap so the title truncates instead of pushing the controls down — and the panel then had nowhere to go but beside the episode. The row is now its own strip, .episode-line, with the panel a block under it. Same pairing the movie file row already uses. --- web/src/main.ts | 5 ++++- web/src/style.css | 14 ++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) 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; }