Browse Source

fix 100% progress bars not looking like 100% on smooth progress bars.

main
Gisle Aune 4 years ago
parent
commit
0fd154227f
  1. 4
      svelte-ui/src/components/Progress.svelte

4
svelte-ui/src/components/Progress.svelte

@ -87,8 +87,12 @@
<div class="bar" title="{title}" class:thin class:thinner> <div class="bar" title="{title}" class:thin class:thinner>
{#if nonSegmented} {#if nonSegmented}
{#if ons > 0}
<div style="flex: {ons}" class={"non-segmented on " + onClass}></div> <div style="flex: {ons}" class={"non-segmented on " + onClass}></div>
{/if}
{#if offs > 0}
<div style="flex: {offs}" class={"non-segmented off " + offClass}></div> <div style="flex: {offs}" class={"non-segmented off " + offClass}></div>
{/if}
{:else} {:else}
{#each {length: ons} as _} {#each {length: ons} as _}
<div class={"on " + onClass}></div> <div class={"on " + onClass}></div>

Loading…
Cancel
Save