Don't include loading inputs in complete percentage
This commit is contained in:
parent
97c218cb4c
commit
ec4eb22a72
@ -747,7 +747,7 @@ class InputWaiter {
|
|||||||
|
|
||||||
const inputTitle = document.getElementById("input").firstElementChild;
|
const inputTitle = document.getElementById("input").firstElementChild;
|
||||||
if (loaded < total) {
|
if (loaded < total) {
|
||||||
const percentComplete = (loaded + loading) / total * 100;
|
const percentComplete = loaded / total * 100;
|
||||||
inputTitle.style.background = `linear-gradient(to right, var(--title-background-colour) ${percentComplete}%, var(--primary-background-colour) ${percentComplete}%)`;
|
inputTitle.style.background = `linear-gradient(to right, var(--title-background-colour) ${percentComplete}%, var(--primary-background-colour) ${percentComplete}%)`;
|
||||||
} else {
|
} else {
|
||||||
inputTitle.style.background = "";
|
inputTitle.style.background = "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user