The refresh button turns while its feed is checked (#78)
The feed events already put a spinner on the sidebar row, which a phone hides. The same state now sets scan-this (the open feed, or a feed in the open folder) and scan-any (any of your feeds) on <body>, and the refresh icons turn under them. On <body> because the feed page is redrawn as items come in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -586,6 +586,8 @@ input:focus,select:focus{outline:0;border-color:var(--accent)}
|
||||
border:2px solid var(--line);border-top-color:var(--accent);animation:ipxspin .8s linear infinite;
|
||||
}
|
||||
@keyframes ipxspin{to{transform:rotate(360deg)}}
|
||||
body.scan-this .fhead [data-a=scan] .i,body.scan-any .fhead [data-a=scanall] .i,body.scan-any #scanAll .i{
|
||||
animation:ipxspin 1s linear infinite}
|
||||
/* A feed's error mark, in the triangle's place: the same column as every folder's triangle,
|
||||
a child's included, which is why it moves left by the child's indent. */
|
||||
.ferr{position:absolute;left:-16px;top:0;bottom:0;width:24px;display:grid;place-items:center;color:var(--bad)}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* ---------------- feed page ---------------- */
|
||||
function renderFeed(){
|
||||
paintScanning(); // another feed's page may be the one open now
|
||||
const box=$('#content');
|
||||
box.classList.remove('plain');
|
||||
const v=VIEWS[S.feed];
|
||||
|
||||
@@ -39,6 +39,11 @@ function paintScanning(){
|
||||
row.classList.toggle('scanning',on);
|
||||
if(on) row.title='Checking for new items…'; else row.removeAttribute('title');
|
||||
}
|
||||
// The refresh buttons turn while what they check is being checked (#78). On <body>, because
|
||||
// a feed's page is redrawn as its items come in and would take a class on the button with it.
|
||||
const busy=id=>scanning.has(id)||S.feeds.some(c=>c.group===id&&scanning.has(c.id));
|
||||
document.body.classList.toggle('scan-this',busy(S.feed));
|
||||
document.body.classList.toggle('scan-any',S.feeds.some(f=>scanning.has(f.id)));
|
||||
}
|
||||
|
||||
function renderFeeds(){
|
||||
|
||||
Reference in New Issue
Block a user