A folder's triangle is back on the far left, in a narrower margin (#491)
#486 moved it to the row's end to take back the 16 px left margin it hung in. It belongs first. It hangs in the list's margin again, now 10 px, and is as wide as that margin and the row's padding, up to the art, so every row's art still lines up with the places above: 20 px from the list's edge, against 26 before #486. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
This commit is contained in:
@@ -3304,18 +3304,21 @@ test.describe('on a phone', () => {
|
||||
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 }) => {
|
||||
test('a folder\'s triangle is on the far left in a narrow margin, and a lone header button keeps its row (#486, #487, #491)', 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.
|
||||
// Every row's art in one line, near the list's edge: 20 px in, where the 16 px margin #486 took
|
||||
// out put it at 26.
|
||||
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);
|
||||
// The folder's triangle first, at the list's edge, and clear of the art (#491).
|
||||
const chev = await box('.feed.group .chev');
|
||||
expect(chev.x - list.x).toBeLessThanOrEqual(1);
|
||||
expect(chev.x + chev.width).toBeLessThanOrEqual(folder.x + 0.5);
|
||||
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