Skip to content

Firefly III: a personal finances manager

If zero, other thing.

James Cole821e007e9515
diff --git a/resources/twig/list/piggy-banks.twig b/resources/twig/list/piggy-banks.twig
index 6ca711f56d..93c8a4c0bd 100644
--- a/resources/twig/list/piggy-banks.twig
+++ b/resources/twig/list/piggy-banks.twig
@@ -30,11 +30,13 @@
<div
{% if piggyBank.percentage == 100 %}
class="progress-bar progress-bar-success"
+ {% elseif piggyBank.percentage == 0 %}
+ class="progress-bar progress-bar-warning"
{% else %}
class="progress-bar progress-bar-info"
{% endif %}
role="progressbar" aria-valuenow="{{ piggyBank.percentage }}" aria-valuemin="0" aria-valuemax="100"
- style="min-width: 40px;width: {{ piggyBank.percentage }}%;">
+ style="min-width: 30px;width: {{ piggyBank.percentage }}%;">
{{ piggyBank.percentage }}%
</div>
</div>