From 809f0ddf1463bc16696e0bc9c983124a7a7ad84a Mon Sep 17 00:00:00 2001 From: rays Date: Fri, 27 Nov 2026 17:23:35 -0500 Subject: [PATCH] A phone row's second line starts under the title, its date on the title's line (#500) The line under an unread title (an episode's length) started under the unread dot, and the date was centred on the row, so a two-line row's date sat between its lines, off line with every other row's. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA --- tests/ui/app.spec.ts | 5 +++++ web/CHANGELOG.md | 2 ++ web/app.css | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/tests/ui/app.spec.ts b/tests/ui/app.spec.ts index 7a41931..3f18d16 100644 --- a/tests/ui/app.spec.ts +++ b/tests/ui/app.spec.ts @@ -3293,6 +3293,11 @@ test.describe('on a phone', () => { await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click(); await expect(row.locator('.t [role=img][aria-label="Unread"]')).toBeVisible(); 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. + const [dot, mark, title, date] = await Promise.all(['.udot', '.pinmark', '.t', '.date'].map(s => row.locator(s).boundingBox())); + expect(Math.abs(mark!.x - (dot!.x + dot!.width + 7))).toBeLessThan(2); + expect(date!.y + date!.height).toBeLessThan(title!.y + title!.height + 3); await flags({ read: true, flagged: false }); await page.reload(); await page.locator('#burger').click(); diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index e95d559..dc12430 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -40,6 +40,8 @@ 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). + - 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). - The X on a playlist's episode marks it played again; it did nothing (#497). diff --git a/web/app.css b/web/app.css index e1713ab..e855a93 100644 --- a/web/app.css +++ b/web/app.css @@ -1426,6 +1426,10 @@ body:has(#player.on) #status{padding-bottom:3px} .ep .st,.ep .fl{display:none} .ep,#split.one .ep{grid-template-columns:minmax(0,1fr) auto} .ep:not(.read) .udot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--accent2);margin-inline-end:7px;vertical-align:.12em} + /* The line under an unread title starts where the title's text does, past the dot, and the date + sits on the title's baseline: centred on the row, it floated between the two lines. */ + .ep:not(.read) .line{padding-inline-start:16px} + .ep .date{align-self:baseline} .ep .pinmark{display:inline-flex;color:var(--dim)} .ep .pinmark+.dot{display:block} .ep .pinmark svg{width:.9em;height:.9em}