From 520c8bf8ffa15cb908a6197b56fdbe8b2d95b240 Mon Sep 17 00:00:00 2001 From: rays Date: Fri, 20 Nov 2026 11:08:24 -0500 Subject: [PATCH] The feed list spends no margin on folders; a lone header button keeps its row (#486, #487) #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 Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy --- tests/ui/app.spec.ts | 17 +++++++++++++++++ web/CHANGELOG.md | 1 + web/app.css | 19 ++++++++++++------- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/tests/ui/app.spec.ts b/tests/ui/app.spec.ts index 933bc16..249ad1f 100644 --- a/tests/ui/app.spec.ts +++ b/tests/ui/app.spec.ts @@ -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); + }); }); diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index fc8d8dc..2163581 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- A folder's triangle in the feed list is at its row's end, before the count, so every feed lines up with the places above at the list's edge, and on a phone Playlists' and Signals' + button sits beside the title rather than on a line of its own (#486, #487). - On a phone, an episode's title starts at the row's edge: the read and pin buttons are gone from the row, an unread episode has a dot before its title and a pinned one a pin under it, and both are changed from the reader's actions (#484). - Podcasts are in order by name with a leading "The", "A" or "An" set aside, in the feed list, the Podcasts shelf, a playlist's choices and the Directory: The Rest Is Science is under R, not T (#481). - A file has one button that brings it to where you are: on a phone or in the iOS app it ends on the device, with iPX fetching it first when it has not got it, and on a computer iPX fetches it and the button then saves a copy. A line beside the file's size says where it is (publisher only, queued for iPX, on iPX, on this device), and the rarer actions (remove from this device, delete from iPX, download to iPX only) are under ⋯ (#457). diff --git a/web/app.css b/web/app.css index f9d2ee4..c07bd95 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} -/* The wider left gutter is the folder triangle's; 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 16px;flex:1;min-height:0} +/* 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} .feed{ display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:9px; cursor:pointer;margin-bottom:1px;position:relative; @@ -644,13 +644,15 @@ 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, hung in the margin so every feed's art lines up with the places - above it. The button is the row's full height and 24 px wide: a near miss used to open the - folder's page, and 16 px left the triangle cramped against the art. */ +/* 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. */ .chev{ - position:absolute;left:-16px;top:0;bottom:0;width:24px;display:grid;place-items:center; + flex:none;order:1;align-self:stretch;width:24px;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). */ @@ -1407,6 +1409,9 @@ body:has(#player.on) #status{padding-bottom:3px} #topbar #epBox{width:auto;flex:1;min-width:0} .tgroup button,.tgroup a{padding:4px 8px;min-width:32px} .fhead.slim .acts{flex:1 1 100%} + /* One button, Playlists' and Signals' +, stays beside the title rather than on a line alone (#487). */ + .fhead.slim .acts:has(>.btn:only-child){flex:none} + .fhead.slim:has(>.acts>.btn:only-child) .meta{flex-basis:0} .iconbtn{width:38px;height:38px} /* One pane at a time: the list, then the item over it. */