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