Simplify download progress UI rendering and fix queue DOM insertion

This commit is contained in:
Dariusz L
2026-08-03 16:54:00 +02:00
parent 5b8b243aee
commit 8d48e0dc37
4 changed files with 10 additions and 52 deletions
+5 -2
View File
@@ -1053,8 +1053,11 @@ export const queueMethods = {
}
if (!currentChild) {
current.appendChild(nextChild.cloneNode(true));
cursor = null;
// Insert at the current position so the cleanup pass can
// remove an obsolete single-card/group root after a mode switch.
const insertedChild = nextChild.cloneNode(true);
current.insertBefore(insertedChild, cursor);
cursor = insertedChild.nextSibling;
continue;
}