On a phone, an episode's title starts at the row's edge (#484)

The read dot's column and the pin button took 77px of a 390px row
before the title, the first of them empty once an episode was read. On
a phone the row has neither now: unread is a dot before the title,
named for a screen reader, and pinned a pin in the line under it, both
changed from the reader's floating actions. The hairline between rows
starts with the text. A desktop's rows are as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
This commit is contained in:
2026-11-19 10:58:58 -05:00
parent 419299f912
commit fb6bb79feb
4 changed files with 47 additions and 3 deletions

View File

@@ -3256,3 +3256,34 @@ test('a podcast told in seasons runs in its own order, one season at a time or a
await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click();
await expect(page.locator('#content .seasons button.on')).toHaveText('All seasons');
});
test.describe('on a phone', () => {
test.use({ viewport: { width: 390, height: 844 }, hasTouch: true, isMobile: true });
test('a row spends its width on the title: unread a dot before it, pinned a pin under it (#484)', async ({ page }) => {
await page.locator('#burger').click();
await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click({ timeout: 20_000 });
await page.locator('#content .tabs button[data-f="all"]').click();
const row = page.locator('#eps .ep', { hasText: 'The Pilot' });
await expect(row).toBeVisible();
// No read or pin button before the title: it starts at the row's own padding.
await expect(row.locator('.st')).toBeHidden();
await expect(row.locator('.fl')).toBeHidden();
const [r, t] = [await row.boundingBox(), await row.locator('.t').boundingBox()];
expect(t!.x - r!.x).toBeLessThan(16);
// Unread says so before the title, by a dot a screen reader names; read, nothing.
const flags = (body: object) => page.evaluate(b => fetch('/api/entries/seasoned-show/sn-1/flags',
{ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(b) }), body);
await flags({ read: false, flagged: true });
await page.reload();
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();
await expect(row.locator('.line [aria-label="Pinned"]')).toBeVisible();
await flags({ read: true, flagged: false });
await page.reload();
await page.locator('#burger').click();
await page.locator('#feedlist .feed', { hasText: 'Seasoned Show' }).click();
await expect(row.locator('.udot')).toBeHidden();
await expect(row.locator('.pinmark')).toHaveCount(0);
});
});