Fix category plot on statement page

This commit is contained in:
Edgar P. Burkhart 2024-12-31 15:44:33 +01:00
parent cb08cb3d46
commit 86a354f353
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@
{% spaceless %} {% spaceless %}
{% for cat in categories %} {% for cat in categories %}
<tr> <tr>
<th scope="row" class="l"> <th scope="row" class="l wi">
{% if cat.category %} {% if cat.category %}
{% if month %} {% if month %}
<a href="{% url "category_transaction_month" cat.category month.year month.month %}">{{ cat.category__icon|remix }}{{ cat.category__name }}</a> <a href="{% url "category_transaction_month" cat.category month.year month.month %}">{{ cat.category__icon|remix }}{{ cat.category__name }}</a>
@ -88,7 +88,6 @@
<tr> <tr>
<th scope="row" class="l">{% translate "Expected total" %}</th> <th scope="row" class="l">{% translate "Expected total" %}</th>
<td class="c">{{ total|check:statement.diff }}</td> <td class="c">{{ total|check:statement.diff }}</td>
<td></td>
<td class="bar m"> <td class="bar m">
{% if statement.diff < 0 %} {% if statement.diff < 0 %}
<div class="tot" style="width:{% widthratio statement.diff max -100 %}%"> <div class="tot" style="width:{% widthratio statement.diff max -100 %}%">

View file

@ -405,7 +405,8 @@ ul.statements {
} }
} }
a { a,
.wi {
& > span[class^="ri-"]:first-child::after { & > span[class^="ri-"]:first-child::after {
content: "\2002"; content: "\2002";
} }