#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');
|
const podcast = await artX('test-show');
|
||||||
for (const id of [':upnext', ':listening']) expect(await artX(id), id).toBe(podcast);
|
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);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### 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).
|
- 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).
|
- 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).
|
- 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).
|
||||||
|
|||||||
19
web/app.css
19
web/app.css
@@ -600,9 +600,9 @@ input:focus,select:focus{border-color:var(--accent)}
|
|||||||
.clearx svg{width:11px;height:11px}
|
.clearx svg{width:11px;height:11px}
|
||||||
.clearable:has(>input:placeholder-shown) .clearx{display:none}
|
.clearable:has(>input:placeholder-shown) .clearx{display:none}
|
||||||
.inline .clearable{flex:1}
|
.inline .clearable{flex:1}
|
||||||
/* The wider left gutter is the folder triangle's; everything in the list shifts with it, so the
|
/* Even on both sides: a margin on the left for folders' triangles moved every feed in with them
|
||||||
feeds still line up with the places above. */
|
(#486); the triangle is at a folder's row end now. */
|
||||||
#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px 16px;flex:1;min-height:0}
|
#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px;flex:1;min-height:0}
|
||||||
.feed{
|
.feed{
|
||||||
display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:9px;
|
display:flex;gap:10px;align-items:center;padding:7px 8px;border-radius:9px;
|
||||||
cursor:pointer;margin-bottom:1px;position:relative;
|
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%;
|
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;
|
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
|
/* Only a folder has a triangle, at its row's end before the count, as a disclosure is (#486):
|
||||||
above it. The button is the row's full height and 24 px wide: a near miss used to open the
|
hung in a left margin, it cost every row that margin. Drawn there by order, so it is still
|
||||||
folder's page, and 16 px left the triangle cramped against the art. */
|
first for the keyboard. The row's full height and 24 px wide: a near miss used to open the
|
||||||
|
folder's page. */
|
||||||
.chev{
|
.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);
|
border-radius:4px;color:var(--faint);
|
||||||
}
|
}
|
||||||
|
.feed .badge,.feed .tag,.feed.scanning::after{order:2}
|
||||||
@media (hover:hover){.chev:hover{color:var(--fg)}}
|
@media (hover:hover){.chev:hover{color:var(--fg)}}
|
||||||
.chev.bad,.chev.bad:hover{color:var(--bad)}
|
.chev.bad,.chev.bad:hover{color:var(--bad)}
|
||||||
/* A feed being checked: a small spinner in place of its unread count (issue #37). */
|
/* 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}
|
#topbar #epBox{width:auto;flex:1;min-width:0}
|
||||||
.tgroup button,.tgroup a{padding:4px 8px;min-width:32px}
|
.tgroup button,.tgroup a{padding:4px 8px;min-width:32px}
|
||||||
.fhead.slim .acts{flex:1 1 100%}
|
.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}
|
.iconbtn{width:38px;height:38px}
|
||||||
|
|
||||||
/* One pane at a time: the list, then the item over it. */
|
/* One pane at a time: the list, then the item over it. */
|
||||||
|
|||||||
Reference in New Issue
Block a user