home · contact · privacy
Minimally improve booking balance layout.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 13 Feb 2025 02:44:01 +0000 (03:44 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 13 Feb 2025 02:44:01 +0000 (03:44 +0100)
src/templates/_macros.tmpl
src/templates/edit_structured.tmpl

index f5d7943517414ddd9b481e4051c14bcf41daf433..85f3b144b47c7e151db98e9604b915cb76b2584e 100644 (file)
@@ -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() %}
index ba99349b34115fb7bbea54f7994243623d0f1d97..43a1858484e9f18d4d277b96da26d46b96c84774 100644 (file)
@@ -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 %}