mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-09 14:25:25 +02:00
feat: color networth values based on sign
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
<div class="d-flex align-items-baseline w-100">
|
<div class="d-flex align-items-baseline w-100">
|
||||||
<div class="currency-name text-start font-monospace tw-text-gray-300">{{ currency.name }}</div>
|
<div class="currency-name text-start font-monospace tw-text-gray-300">{{ currency.name }}</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
<div class="{% if currency.amount > 0 %}tw-text-green-400{% elif currency.amount < 0 %}tw-text-red-400{% endif %}">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="currency.amount"
|
:amount="currency.amount"
|
||||||
:prefix="currency.prefix"
|
:prefix="currency.prefix"
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
text-end></c-amount.display>
|
text-end></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -60,6 +62,7 @@
|
|||||||
<div class="text-start font-monospace tw-text-gray-300">
|
<div class="text-start font-monospace tw-text-gray-300">
|
||||||
<span class="hierarchy-line-icon"></span>{{ account_data.name }}</div>
|
<span class="hierarchy-line-icon"></span>{{ account_data.name }}</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
<div class="{% if account_data.balance > 0 %}tw-text-green-400{% elif account_data.balance < 0 %}tw-text-red-400{% endif %}">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account_data.balance"
|
:amount="account_data.balance"
|
||||||
:prefix="account_data.currency.prefix"
|
:prefix="account_data.currency.prefix"
|
||||||
@@ -67,6 +70,7 @@
|
|||||||
:decimal_places="account_data.currency.decimal_places"></c-amount.display>
|
:decimal_places="account_data.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% if account_data.exchange %}
|
{% if account_data.exchange %}
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account_data.exchange.amount"
|
:amount="account_data.exchange.amount"
|
||||||
@@ -83,6 +87,7 @@
|
|||||||
<div class="d-flex align-items-baseline w-100">
|
<div class="d-flex align-items-baseline w-100">
|
||||||
<div class="currency-name text-start font-monospace tw-text-gray-300">{{ account_data.name }}</div>
|
<div class="currency-name text-start font-monospace tw-text-gray-300">{{ account_data.name }}</div>
|
||||||
<div class="dotted-line flex-grow-1"></div>
|
<div class="dotted-line flex-grow-1"></div>
|
||||||
|
<div class="{% if account_data.balance > 0 %}tw-text-green-400{% elif account_data.balance < 0 %}tw-text-red-400{% endif %}">
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account_data.balance"
|
:amount="account_data.balance"
|
||||||
:prefix="account_data.currency.prefix"
|
:prefix="account_data.currency.prefix"
|
||||||
@@ -90,6 +95,7 @@
|
|||||||
:decimal_places="account_data.currency.decimal_places"></c-amount.display>
|
:decimal_places="account_data.currency.decimal_places"></c-amount.display>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% if account_data.exchange %}
|
{% if account_data.exchange %}
|
||||||
<c-amount.display
|
<c-amount.display
|
||||||
:amount="account_data.exchange.amount"
|
:amount="account_data.exchange.amount"
|
||||||
|
|||||||
Reference in New Issue
Block a user