From 63ad5dc1b789e01240068f75a0487b13f33664c2 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sun, 17 Nov 2019 11:33:59 -0700 Subject: [PATCH] Prevent wrapping in "money" column of Financials --- tildes/scss/modules/_table.scss | 5 +++++ tildes/tildes/templates/financials.jinja2 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tildes/scss/modules/_table.scss b/tildes/scss/modules/_table.scss index 2304d83..09fd900 100644 --- a/tildes/scss/modules/_table.scss +++ b/tildes/scss/modules/_table.scss @@ -6,6 +6,11 @@ margin-top: 1rem; margin-bottom: 2rem; + .td-money { + text-align: right; + white-space: nowrap; + } + .tr-summary { font-weight: bold; } diff --git a/tildes/tildes/templates/financials.jinja2 b/tildes/tildes/templates/financials.jinja2 index 12a9cbe..8841359 100644 --- a/tildes/tildes/templates/financials.jinja2 +++ b/tildes/tildes/templates/financials.jinja2 @@ -56,7 +56,7 @@ {% macro entry_table_row(description, amount, is_approximate=False, is_summary=False) %} {{ description }} - + {% if is_approximate %}*{% endif %} {{ format_money(amount) }}