Tweak table column widths to evenly distribute Description and Account columns, regardless of page width

This commit is contained in:
RunasSudo 2020-03-31 03:01:27 +11:00
parent 8c8c0c626f
commit 0a5a5994bc
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
4 changed files with 27 additions and 27 deletions

View File

@ -44,10 +44,10 @@
<table class="ledger">
<tr>
{#<th style="width: 5em;">Date</th>#}
<th>Description</th>
<th style="max-width: 8em;">Account</th>
<th style="text-align: right; width: 5em;">Dr</th>
<th style="text-align: right; width: 5em;">Cr</th>
<th style="width: 50%;">Description</th>
<th style="width: 50%;">Account</th>
<th style="text-align: right; min-width: 5em;">Dr</th>
<th style="text-align: right; min-width: 5em;">Cr</th>
</tr>
{% for posting in transaction.postings %}

View File

@ -39,14 +39,14 @@
<table class="ledger">
<tr>
{#<th style="width: 5em;">Date</th>#}
<th>Description</th>
<th style="max-width: 8em;">Account</th>
<th style="text-align: right; width: 4em;">Dr</th> {# Amount #}
<th style="width: 2em;"></th> {# Currency #}
<th style="width: 2em;"></th> {# Price #}
<th style="text-align: right; width: 4em;">Cr</th>
<th style="width: 2em;"></th>
<th style="width: 2em;"></th>
<th style="width: 50%;">Description</th>
<th style="width: 50%;">Account</th>
<th style="text-align: right; min-width: 4em;">Dr</th> {# Amount #}
<th style="min-width: 2em;"></th> {# Currency #}
<th style="min-width: 2em;"></th> {# Price #}
<th style="text-align: right; min-width: 4em;">Cr</th>
<th style="min-width: 2em;"></th>
<th style="min-width: 2em;"></th>
</tr>
{% for posting in transaction.postings %}

View File

@ -36,12 +36,12 @@
<table class="ledger">
<tr>
<th style="width: 5em;">Date</th>
<th>Description</th>
<th style="max-width: 8em;">{% if account %}Related {% endif %}Account</th>
<th style="text-align: right; width: 5em;">Dr</th>
<th style="text-align: right; width: 5em;">Cr</th>
{% if account %}<th style="text-align: right; width: 6em;">Balance</th>{% endif %}
<th style="min-width: 5em;">Date</th>
<th style="width: 50%;">Description</th>
<th style="width: 50%;">{% if account %}Related {% endif %}Account</th>
<th style="text-align: right; min-width: 5em;">Dr</th>
<th style="text-align: right; min-width: 5em;">Cr</th>
{% if account %}<th style="text-align: right; min-width: 6em;">Balance</th>{% endif %}
</tr>
{% set ns = namespace(balance=None) %}

View File

@ -27,15 +27,15 @@
<table class="ledger">
<tr>
<th style="width: 5em;">Date</th>
<th>Description</th>
<th style="width: 1em;"></th> {# Dr/Cr #}
<th style="text-align: right; width: 4em;">Amount</th>
<th style="width: 2em;"></th> {# Currency #}
<th style="text-align: right; width: 4em;">Balance</th>
<th style="width: 2em;"></th> {# Currency #}
<th style="width: 2em;"></th> {# Price #}
<th style="width: 1em;"></th>
<th style="min-width: 5em;">Date</th>
<th style="width: 100%;">Description</th>
<th style="min-width: 1em;"></th> {# Dr/Cr #}
<th style="text-align: right; min-width: 4em;">Amount</th>
<th style="min-width: 2em;"></th> {# Currency #}
<th style="text-align: right; min-width: 4em;">Balance</th>
<th style="min-width: 2em;"></th> {# Currency #}
<th style="min-width: 2em;"></th> {# Price #}
<th style="min-width: 1em;"></th>
</tr>
{% set ns = namespace(balance=None) %}