improved ladder display
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #prepend-inner>
|
<template #prepend-inner>
|
||||||
<v-btn variant="text" text="max" class="px-0" size="small"
|
<v-btn variant="text" text="max" class="px-0" size="small"
|
||||||
:disabled="!maxAmount" @click="setMax"/>
|
:disabled="!maxAmount || order.amountIsTokenA===order.buy && !co.price" @click="setMax"/>
|
||||||
</template>
|
</template>
|
||||||
<template #append-inner>
|
<template #append-inner>
|
||||||
<v-btn :text="order.amountIsTokenA?co.baseToken.s:co.quoteToken.s+' worth'"
|
<v-btn :text="order.amountIsTokenA?co.baseToken.s:co.quoteToken.s+' worth'"
|
||||||
|
|||||||
@@ -23,11 +23,11 @@
|
|||||||
:color="color" :base-color="color"
|
:color="color" :base-color="color"
|
||||||
style="flex: 6em"
|
style="flex: 6em"
|
||||||
/></td>
|
/></td>
|
||||||
<td class="weight">{{(weights[weights.length-1]*100).toFixed(1)}}%</td>
|
<td class="weight">{{allocationText(weights[weights.length-1])}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="num in rungs-2" class="ml-5">
|
<tr v-for="num in rungs-2" class="ml-5">
|
||||||
<td class="pl-5">{{prices[prices.length-1-num]}}</td>
|
<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>
|
</tr>
|
||||||
</template>
|
</template>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
:color="color" :base-color="color"
|
:color="color" :base-color="color"
|
||||||
style="flex: 6em"
|
style="flex: 6em"
|
||||||
/></td>
|
/></td>
|
||||||
<td class="weight">{{weights.length?(weights[0]*100).toFixed(1):''}}%</td>
|
<td class="weight">{{weights.length?allocationText(weights[0]):''}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user