Progress bars: set widths with a timer (animation frames may not run)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RNwtXPYqFu3oKaaXwYwNWW
This commit is contained in:
parent
7445d0c62f
commit
bdf91b36bb
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ async function loadProgress() {
|
|||
seg.style.setProperty('width', `${Math.min(100, lastBars[key + cls] ?? 0)}%`);
|
||||
lastBars[key + cls] = w;
|
||||
meter.append(seg);
|
||||
requestAnimationFrame(() => seg.style.setProperty('width', `${Math.min(100, w)}%`));
|
||||
setTimeout(() => seg.style.setProperty('width', `${Math.min(100, w)}%`), 30);
|
||||
}
|
||||
right.append(meter, el('div', `byte-identical ${fmt(done.identical)} (${pct(done.identical, of).toFixed(2)}%) · peer-confirmed ${fmt(done.confirmed)} (${pct(done.confirmed, of).toFixed(2)}%)`, 'pbar-detail'));
|
||||
row.append(right);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue