From 4fccb59f44ae39a2b44a20723c86e5dcd784c5de Mon Sep 17 00:00:00 2001 From: rays Date: Sun, 22 Nov 2026 12:17:30 -0500 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U --- tests/ui/app.spec.ts | 11 +++++++---- web/CHANGELOG.md | 1 + web/app.css | 16 +++++++--------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/tests/ui/app.spec.ts b/tests/ui/app.spec.ts index 378966a..feb918c 100644 --- a/tests/ui/app.spec.ts +++ b/tests/ui/app.spec.ts @@ -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); diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 218ce4b..1ca5aa6 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- A folder's triangle in the feed list is back on the far left, in a narrower margin than before, with every feed's artwork still in line (#491). - Opening a podcast or a list draws only the list: the feed list beside it is no longer rebuilt to move its highlight, and dates are written by one formatter rather than one a row, about 40% less work on a phone (#490). - A report of a reader that would not scroll no longer comes from a quick flick that did scroll, and says when the reader was last swiped across, not that it was just now (#488). - The headers of Currently Listening, Up Next, Playlists and Signals start where a podcast's does, rather than twice as far in and further down (#485). diff --git a/web/app.css b/web/app.css index 5bfeac4..6dd6abf 100644 --- a/web/app.css +++ b/web/app.css @@ -600,9 +600,9 @@ input:focus,select:focus{border-color:var(--accent)} .clearx svg{width:11px;height:11px} .clearable:has(>input:placeholder-shown) .clearx{display:none} .inline .clearable{flex:1} -/* Even on both sides: a margin on the left for folders' triangles moved every feed in with them - (#486); the triangle is at a folder's row end now. */ -#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px;flex:1;min-height:0} +/* The wider left gutter is the folder triangle's, kept narrow (#486, #491): everything in the list + shifts with it, so the feeds still line up with the places above. */ +#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px 10px;flex:1;min-height:0} .feed{ display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:9px; cursor:pointer;margin-bottom:1px;position:relative; @@ -644,15 +644,13 @@ input:focus,select:focus{border-color:var(--accent)} content:"";display:inline-block;width:10px;height:10px;margin-left:6px;vertical-align:-1px;border-radius:50%; border:2px solid var(--line);border-top-color:var(--accent);animation:ipxspin .8s linear infinite; } -/* Only a folder has a triangle, at its row's end before the count, as a disclosure is (#486): - hung in a left margin, it cost every row that margin. Drawn there by order, so it is still - first for the keyboard. The row's full height and 24 px wide: a near miss used to open the - folder's page. */ +/* Only a folder has a triangle, on the far left (#491), hung in the list's margin so every feed's + art lines up with the places above it. The row's full height, and the margin and the row's + padding wide, up to the art: a near miss used to open the folder's page. */ .chev{ - flex:none;order:1;align-self:stretch;width:24px;display:grid;place-items:center; + position:absolute;left:-10px;top:0;bottom:0;width:18px;display:grid;place-items:center; border-radius:4px;color:var(--faint); } -.feed .badge,.feed .tag,.feed.scanning::after{order:2} @media (hover:hover){.chev:hover{color:var(--fg)}} .chev.bad,.chev.bad:hover{color:var(--bad)} /* A feed being checked: a small spinner in place of its unread count (issue #37). */