Skip to content

Commit

Permalink
improve address formatting in tx.tmpl (fixes firefox issue as well)
Browse files Browse the repository at this point in the history
  • Loading branch information
gozart1 authored and chappjc committed Oct 6, 2017
1 parent 0fd87a5 commit 8dfe14a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ body.darkBG .navbar-fixed-bottom a {
font-family: 'inconsolata-v15-latin-regular';
font-size: 14px;
}
.table .address {
max-width: 127px;
display: inline-block;
}

/*content*/
.dcr-total .dcr {
Expand Down
12 changes: 6 additions & 6 deletions views/tx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@
<tbody>
{{range .Vin}}
<tr>
<td>
<td class="break-word">
{{if .Coinbase}}
Coinbase: {{ .Coinbase }}
{{else if .Stakebase}}
Stakebase: {{ .Stakebase }}
{{else}}
<a href="/explorer/tx/{{.Txid}}"><span class="break-word">{{.Txid}}:{{.Vout}}</span></a>
<a href="/explorer/tx/{{.Txid}}">{{.Txid}}:{{.Vout}}</a>
{{end}}
</td>
<td><div>
<td><div class="break-word address">
{{if gt (len .Addresses) 0}}
{{range .Addresses}}
<a class="break-word" href="/explorer/address/{{.}}">{{.}}</a><br>
<a href="/explorer/address/{{.}}">{{.}}</a><br>
{{end}}
{{else}}
N/A
Expand Down Expand Up @@ -141,9 +141,9 @@
{{range .Vout}}
{{ if ne .Amount 0.0}}
<tr>
<td>
<td class="break-word">
{{range .Addresses}}
<a class="break-word mono" href="/explorer/address/{{.}}">{{.}}</a><br>
<a class="mono address" href="/explorer/address/{{.}}">{{.}}</a><br>
{{end}}
</td>
<td>
Expand Down

0 comments on commit 8dfe14a

Please sign in to comment.