Skip to content

Commit

Permalink
[goals] make sure spacers are if prediction can't be done
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Jan 14, 2024
1 parent 5dcfe6b commit 4557b10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/components/ProgressWithBreakpoints.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import _ from "lodash";
export let progressPercent: number;
export let breakPoints: Point[];
$: spacers = _.range(breakPoints.length, 4);
</script>

<div>
Expand Down Expand Up @@ -32,6 +34,9 @@
</div>
</div>
{/each}
{#each spacers as _s}
<div></div>
{/each}
</div>
{/if}
<Progress {progressPercent} />
Expand Down

0 comments on commit 4557b10

Please sign in to comment.