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);
|
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();
|
await page.locator('#burger').click();
|
||||||
const box = async (sel: string) => (await page.locator(sel).first().boundingBox())!;
|
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.
|
// 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 expect.poll(async () => (await box('#feedlist')).x).toBeGreaterThanOrEqual(0);
|
||||||
await page.waitForFunction(() => document.getAnimations().length === 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')];
|
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).toBe(folder.x);
|
||||||
expect(feed.x - list.x).toBeLessThanOrEqual(20);
|
expect(feed.x - list.x).toBeLessThanOrEqual(20);
|
||||||
// The folder's triangle after its name, before the count.
|
// The folder's triangle first, at the list's edge, and clear of the art (#491).
|
||||||
expect((await box('.feed.group .chev')).x).toBeGreaterThan((await box('.feed.group .txt')).x);
|
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); });
|
await page.evaluate(() => { selectFeed(PLAYLISTS); nav(false); });
|
||||||
const [art, add] = [await box('#content .fhead .art'), await box('#content .fhead [data-a="new"]')];
|
const [art, add] = [await box('#content .fhead .art'), await box('#content .fhead [data-a="new"]')];
|
||||||
expect(add.y).toBeLessThan(art.y + art.height);
|
expect(add.y).toBeLessThan(art.y + art.height);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### 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).
|
- 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).
|
- 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).
|
- 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).
|
||||||
|
|||||||
16
web/app.css
16
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}
|
||||||
/* Even on both sides: a margin on the left for folders' triangles moved every feed in with them
|
/* The wider left gutter is the folder triangle's, kept narrow (#486, #491): everything in the list
|
||||||
(#486); the triangle is at a folder's row end now. */
|
shifts with it, so the feeds still line up with the places above. */
|
||||||
#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px;flex:1;min-height:0}
|
#feedlist{overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px 10px;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,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%;
|
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, at its row's end before the count, as a disclosure is (#486):
|
/* Only a folder has a triangle, on the far left (#491), hung in the list's margin so every feed's
|
||||||
hung in a left margin, it cost every row that margin. Drawn there by order, so it is still
|
art lines up with the places above it. The row's full height, and the margin and the row's
|
||||||
first for the keyboard. The row's full height and 24 px wide: a near miss used to open the
|
padding wide, up to the art: a near miss used to open the folder's page. */
|
||||||
folder's page. */
|
|
||||||
.chev{
|
.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);
|
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). */
|
||||||
|
|||||||
Reference in New Issue
Block a user