diff --git a/frontend/src/lib/components/common/Progress.svelte b/frontend/src/lib/components/common/Progress.svelte index 2cd60f7..46b1445 100644 --- a/frontend/src/lib/components/common/Progress.svelte +++ b/frontend/src/lib/components/common/Progress.svelte @@ -69,8 +69,15 @@ nonSegmented = alwaysSmooth || (target >= 60); if (!nonSegmented) { - ons = Math.round(ons); - offs = Math.round(offs); + ons = Math.floor(ons); + offs = Math.ceil(offs); + if (ons + offs > target) { + if (offs > 0) { + offs -= 1; + } else { + ons -= 1; + } + } } } else { offClass = "none";