From 19262bd788ec188563b95144728796cadee91a61 Mon Sep 17 00:00:00 2001 From: rays Date: Fri, 27 Nov 2026 17:29:07 -0500 Subject: [PATCH] A phone's episode row leaves out the length, keeping one line (#500) The length under the title gave podcast rows a second line the articles around them do not have, and looked out of place however it was aligned. The reader shows it; wider screens keep it in the row. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA --- tests/ui/app.spec.ts | 2 ++ web/CHANGELOG.md | 2 +- web/src/items.ts | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ui/app.spec.ts b/tests/ui/app.spec.ts index 97e0565..3415960 100644 --- a/tests/ui/app.spec.ts +++ b/tests/ui/app.spec.ts @@ -3292,6 +3292,8 @@ test.describe('on a phone', () => { await page.locator('#burger').click(); await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click(); await expect(row.locator('.t [role=img][aria-label="Unread"]')).toBeVisible(); + // One line like the rest: no length under the title (#500). + await expect(row.locator('.line')).not.toContainText(/\d:\d\d/); await expect(row.locator('.line [aria-label="Pinned"]')).toBeVisible(); // What is under the title starts where its text does, past the dot, and the date is on the // title's line, not centred between the two. diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 229ea9f..c9e6786 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -40,7 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- On a phone, the line under an unread episode's title starts where the title does, past its dot, and the date sits on the title's line instead of between the two (#500). +- On a phone, an episode's row is one line like the rest: its length, which took a line of its own, is in the reader, and the date sits on the title's line (#500). - On an iPhone, the reader rebuilds its scrolling each time an item opens, and again after a drag that did not move it, so a freshly opened item scrolls on the first try (#450). - The count under All Subscriptions counts only its own unread items, not those of feeds hidden from it, so it agrees with the header (#499). - An item without a title is named in bold like the rest of the list, not in regular weight beside them (#498). diff --git a/web/src/items.ts b/web/src/items.ts index f314533..6fda0c3 100644 --- a/web/src/items.ts +++ b/web/src/items.ts @@ -202,7 +202,9 @@ function epEl(e: Entry){ // On a phone, where the row has no pin button, what says it is pinned (#484). e.flagged&&`${ICON.pinOn}`, num&&`${num}`, - left&&`${left}`, + // Not on a phone, where it took a second line under a title the others do not have, and + // the reader says it anyway. + left&&!window.matchMedia?.('(max-width:820px)')?.matches&&`${left}`, others>0&&`+${others} more file${others===1?'':'s'}`, enc&&enc.deadair&&enc.deadair>0&&`${shorter(enc.deadair)}`, enc&&enc.deadair_pending&&DEAD_PENDING,