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>
|
||||
<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' : ''"
|
||||
:title="profitDesc"
|
||||
>
|
||||
{{ formatPercent(profitRatio, 2) }}
|
||||
<small class="ml-1" :title="stakeCurrency">
|
||||
{{ profitRatio ? formatPercent(profitRatio, 2) : '' }}
|
||||
<span class="ml-1" :class="profitRatio ? 'small' : ''" :title="stakeCurrency">
|
||||
{{ profitRatio ? '(' : '' }}{{ `${formatPrice(profitAbs, 3)}`
|
||||
}}{{ profitRatio ? ')' : ` ${stakeCurrency}` }}
|
||||
</small>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user