Fixed precision in progress percentage display (#512)
Currently, when loading a file for processing, the percentage display underneath the progress bar jumps around with arbitrary float precision. Fixing it to 2 decimal places would make it more readable.
This commit is contained in:
+1
-1
@@ -474,7 +474,7 @@ class Loader extends LitElement {
|
|||||||
${displayPercent
|
${displayPercent
|
||||||
? html`
|
? html`
|
||||||
<label class="progress-label" for="progress"
|
<label class="progress-label" for="progress"
|
||||||
>${displayPercent}%</label
|
>${displayPercent.toFixed(2)}%</label
|
||||||
>
|
>
|
||||||
`
|
`
|
||||||
: nothing}
|
: nothing}
|
||||||
|
|||||||
Reference in New Issue
Block a user