Skip to content

Commit addcc8d

Browse files
committed
fix: align amount to right in table views
1 parent 50f3b9c commit addcc8d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ledger/cmd/templates/template.accounts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>Account List</h1>
4343
<tr>
4444
<td class="d-block d-sm-none"><a href="/account/{{.Name}}">{{abbrev .Name}}</a></td>
4545
<td class="d-none d-sm-block"><a href="/account/{{.Name}}">{{.Name}}</a></td>
46-
<td align="right">{{.Balance.StringFixedBank}}</td>
46+
<td class="text-end">{{.Balance.StringFixedBank}}</td>
4747
</tr>
4848
{{end}}
4949
</tbody>

ledger/cmd/templates/template.common.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<td>{{$trans.Date.Format "2006-01-02"}}</td>
106106
<td class="d-none d-sm-block">{{$trans.Payee}}</td>
107107
<td class="d-block d-sm-none">{{printf "%.16s" $trans.Payee}}</td>
108-
<td>{{$trAcc.Balance.StringFixedBank}}</td>
108+
<td class="text-end">{{$trAcc.Balance.StringFixedBank}}</td>
109109
</tr>
110110
{{end}}
111111
{{end}}

ledger/cmd/templates/template.ledger.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h1>Ledger</h1>
5757
<td></td>
5858
<td class="d-none d-sm-block"><a href="/account/{{.Name}}">{{.Name}}</a></td>
5959
<td class="d-block d-sm-none"><a href="/account/{{.Name}}">{{abbrev .Name}}</a></td>
60-
<td align="right">{{.Balance.StringFixedBank}}</td>
60+
<td class="text-end">{{.Balance.StringFixedBank}}</td>
6161
</tr>
6262
{{end}}
6363
{{end}}

ledger/cmd/templates/template.quickview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h1>Account List</h1>
4848
<a href="/account/{{.Name}}">{{.Name}}</a>
4949
<div style="float:right"><a class="link-success" href="/addtrans/{{.Name}}">+</a></div>
5050
</td>
51-
<td align="right">{{.Balance.StringFixedBank}}</td>
51+
<td class="text-end">{{.Balance.StringFixedBank}}</td>
5252
</tr>
5353
{{end}}
5454
</tbody>

0 commit comments

Comments
 (0)