#feedlist was padded 16px on the left and 8 on the right so a folder's triangle could hang in the margin, and every feed and place moved in with it. The triangle is drawn at a folder's row end now, before the count, by flex order, so the keyboard still meets it first, and the list is padded alike on both sides. On a phone a header's buttons take a row of their own, right for a podcast's seven; one button, Playlists' and Signals' +, stays beside the title, its description given way to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
This commit is contained in:
@@ -3296,4 +3296,21 @@ test.describe('on a phone', () => {
|
||||
const podcast = await artX('test-show');
|
||||
for (const id of [':upnext', ':listening']) expect(await artX(id), id).toBe(podcast);
|
||||
});
|
||||
|
||||
test('the feed list spends no margin on folders, and a lone header button keeps its row (#486, #487)', async ({ page }) => {
|
||||
await page.locator('#burger').click();
|
||||
const box = async (sel: string) => (await page.locator(sel).first().boundingBox())!;
|
||||
// Once the drawer has slid in: measured on its way, the rows are still moving.
|
||||
await expect.poll(async () => (await box('#feedlist')).x).toBeGreaterThanOrEqual(0);
|
||||
await page.waitForFunction(() => document.getAnimations().length === 0);
|
||||
const [list, folder, feed] = [await box('#feedlist'), await box('.feed.group .fart'), await box('#feedlist .feed:not(.group):not(.sigs):not(.plists) .fart')];
|
||||
// Every row's art in one line, as near the list's edge as its right side is.
|
||||
expect(feed.x).toBe(folder.x);
|
||||
expect(feed.x - list.x).toBeLessThanOrEqual(20);
|
||||
// The folder's triangle after its name, before the count.
|
||||
expect((await box('.feed.group .chev')).x).toBeGreaterThan((await box('.feed.group .txt')).x);
|
||||
await page.evaluate(() => { selectFeed(PLAYLISTS); nav(false); });
|
||||
const [art, add] = [await box('#content .fhead .art'), await box('#content .fhead [data-a="new"]')];
|
||||
expect(add.y).toBeLessThan(art.y + art.height);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user