improved ladder display

This commit is contained in:
Tim
2024-04-13 14:17:59 -04:00
parent 2fa5f23e07
commit dd9fbb7af7
2 changed files with 4 additions and 4 deletions

View File

@@ -23,11 +23,11 @@
:color="color" :base-color="color"
style="flex: 6em"
/></td>
<td class="weight">{{(weights[weights.length-1]*100).toFixed(1)}}%</td>
<td class="weight">{{allocationText(weights[weights.length-1])}}</td>
</tr>
<tr v-for="num in rungs-2" class="ml-5">
<td class="pl-5">{{prices[prices.length-1-num]}}</td>
<td class="weight">{{(weights[prices.length-1-num]*100).toFixed(1)}}%</td>
<td class="weight">{{allocationText(weights[prices.length-1-num])}}</td>
</tr>
</template>
<tr>
@@ -37,7 +37,7 @@
:color="color" :base-color="color"
style="flex: 6em"
/></td>
<td class="weight">{{weights.length?(weights[0]*100).toFixed(1):''}}%</td>
<td class="weight">{{weights.length?allocationText(weights[0]):''}}</td>
</tr>
</tbody>
</table>