From 10fea65088c8e0303aceb7d4e0728085f114079c Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Tue, 24 Dec 2024 13:22:44 -0300 Subject: [PATCH] refactor(cotton): change percentage_distribution's coloring and margin --- app/templates/cotton/ui/percentage_distribution.html | 8 ++++---- app/templates/yearly_overview/fragments/account_data.html | 4 +++- .../yearly_overview/fragments/currency_data.html | 4 +++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/templates/cotton/ui/percentage_distribution.html b/app/templates/cotton/ui/percentage_distribution.html index 461efed..93477d2 100644 --- a/app/templates/cotton/ui/percentage_distribution.html +++ b/app/templates/cotton/ui/percentage_distribution.html @@ -1,7 +1,7 @@ {% load i18n %} -
+
-
@@ -15,7 +15,7 @@
-
@@ -28,4 +28,4 @@ title="{% trans 'Current Expenses' %} ({{ percentage.percentages.expense_current|floatformat:2 }}%)">
-
\ No newline at end of file +
diff --git a/app/templates/yearly_overview/fragments/account_data.html b/app/templates/yearly_overview/fragments/account_data.html index 34b8698..d4a0f5d 100644 --- a/app/templates/yearly_overview/fragments/account_data.html +++ b/app/templates/yearly_overview/fragments/account_data.html @@ -175,7 +175,9 @@ {% endif %} {% with p=percentages|get_dict_item:account_id %} - +
+ +
{% endwith %} {% empty %} {% with p=percentages|get_dict_item:currency_id %} - +
+ +
{% endwith %} {% empty %}