Don't include loading inputs in complete percentage
This commit is contained in:
1 parent
97c218cb4c
commit
ec4eb22a72
1 file changed
+1
-1
@@ -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 = "";
|
||||||
|
|||||||
Reference in new issue
Block a user