From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 13 Feb 2025 02:44:01 +0000 (+0100)
Subject: Minimally improve booking balance layout.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/day?a=commitdiff_plain;h=1d0aae9826c77d0297b7ac2df170bc0b7eaf55d5;p=ledgplom

Minimally improve booking balance layout.
---

diff --git a/src/templates/_macros.tmpl b/src/templates/_macros.tmpl
index f5d7943..85f3b14 100644
--- a/src/templates/_macros.tmpl
+++ b/src/templates/_macros.tmpl
@@ -122,8 +122,8 @@ function taint() {
 
 
 {% macro booking_balance_account_with_children(node) %}
-<tr class="alternating{% if node.directly_set %} directly_set{% endif %}">
-<td>{{node.name}}{% if node.children %}:{% endif %}</td>
+<tr class="alternating">
+<td {% if node.directly_set %}class="directly_set"{% endif %}>{{node.name}}{% if node.children %}:{% endif %}</td>
 <td class="money">
 <table>
 {% for curr, amt in node.wealth_before.items() %}
diff --git a/src/templates/edit_structured.tmpl b/src/templates/edit_structured.tmpl
index ba99349..43a1858 100644
--- a/src/templates/edit_structured.tmpl
+++ b/src/templates/edit_structured.tmpl
@@ -8,7 +8,7 @@
 input.date_input, input.number_input { font-family: monospace; }
 input.number_input { text-align: right; }
 input.date_input { margin-right: 0.1em; }
-tr.directly_set > td { font-weight: bold; }
+td.directly_set { font-weight: bold; }
 {% endblock %}