Browse Source

Prevent wrapping in "money" column of Financials

merge-requests/85/head
Deimos 5 years ago
parent
commit
63ad5dc1b7
  1. 5
      tildes/scss/modules/_table.scss
  2. 2
      tildes/tildes/templates/financials.jinja2

5
tildes/scss/modules/_table.scss

@ -6,6 +6,11 @@
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
.td-money {
text-align: right;
white-space: nowrap;
}
.tr-summary { .tr-summary {
font-weight: bold; font-weight: bold;
} }

2
tildes/tildes/templates/financials.jinja2

@ -56,7 +56,7 @@
{% macro entry_table_row(description, amount, is_approximate=False, is_summary=False) %} {% macro entry_table_row(description, amount, is_approximate=False, is_summary=False) %}
<tr{{ ' class="tr-summary"'|safe if is_summary }}> <tr{{ ' class="tr-summary"'|safe if is_summary }}>
<td>{{ description }}</td> <td>{{ description }}</td>
<td class="text-right">
<td class="td-money">
{% if is_approximate %}*{% endif %} {% if is_approximate %}*{% endif %}
{{ format_money(amount) }} {{ format_money(amount) }}
</td> </td>

Loading…
Cancel
Save