mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Improve styling of profitpill
This commit is contained in:
parent
f6505166fc
commit
85261f7e42
|
@ -1,14 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="d-flex justify-content-center align-items-center profit-pill px-1"
|
class="d-flex justify-content-center align-items-center profit-pill px-2"
|
||||||
:class="isProfitable ? 'profit-pill-profit' : ''"
|
:class="isProfitable ? 'profit-pill-profit' : ''"
|
||||||
:title="profitDesc"
|
:title="profitDesc"
|
||||||
>
|
>
|
||||||
{{ formatPercent(profitRatio, 2) }}
|
{{ profitRatio ? formatPercent(profitRatio, 2) : '' }}
|
||||||
<small class="ml-1" :title="stakeCurrency">
|
<span class="ml-1" :class="profitRatio ? 'small' : ''" :title="stakeCurrency">
|
||||||
{{ profitRatio ? '(' : '' }}{{ `${formatPrice(profitAbs, 3)}`
|
{{ profitRatio ? '(' : '' }}{{ `${formatPrice(profitAbs, 3)}`
|
||||||
}}{{ profitRatio ? ')' : ` ${stakeCurrency}` }}
|
}}{{ profitRatio ? ')' : ` ${stakeCurrency}` }}
|
||||||
</small>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user