Browse Source

minor UI tweaks to improve UX, especially on small screens

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
5315197217
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 4
      views/includes/block-content.pug
  2. 16
      views/includes/transaction-io-details.pug

4
views/includes/block-content.pug

@ -211,7 +211,7 @@ div(class="tab-content")
each tx, txIndex in result.transactions
//pre
// code(class="json") #{JSON.stringify(tx, null, 4)}
div(class="xcard mb-3")
div(class="xcard mb-4 bg-light rounded shadow-sm")
div(class="card-header monospace")
if (tx && tx.txid)
span ##{(txIndex + offset + 1).toLocaleString()}
@ -223,7 +223,7 @@ div(class="tab-content")
a(data-toggle="tooltip", title=(coinConfig.name + " Fun! See transaction for details"))
i(class="fas fa-certificate text-primary")
div(class="card-body")
div(class="card-body px-lg-3 px-2")
//pre
// code(class="json") #{JSON.stringify(result.txInputsByTransaction[tx.txid], null, 4)}
if (true)

16
views/includes/transaction-io-details.pug

@ -32,6 +32,8 @@ div(class="row monospace")
i(class=("fas fa-" + fontawesomeInputName + " mr-2"))
span(class="d-inline d-md-none") Input #
span #{(txVinIndex + 1).toLocaleString()}
if (tx.vin.length > 0)
span(class="d-inline d-md-none font-weight-light text-muted") / #{tx.vin.length.toLocaleString()}
div(class="tx-io-content")
div(class="row pr-3")
@ -92,10 +94,10 @@ div(class="row monospace")
include ./value-display.pug
hr
div(class="row mb-5 pr-3")
div(class="row mb-5 mb-lg-2 pr-3")
div(class="col")
div(class="font-weight-bold text-left text-md-right")
span(class="d-inline d-md-none") Total Input:
span(class="d-block d-md-none") Total Input:
- var currencyValue = totalIOValues.input;
include ./value-display.pug
@ -119,13 +121,15 @@ div(class="row monospace")
- hiddenRow = true;
- hiddenRowCount++;
div(data-txid=tx.txid, class=("pr-3 " + (hiddenRow ? "d-none" : "")))
div(data-txid=tx.txid, class=("pr-0 " + (hiddenRow ? "d-none" : "")))
div(class="row")
div(class="tx-io-label")
a(data-toggle="tooltip", title=("Output #" + (voutIndex + 1).toLocaleString()), style="white-space: nowrap;")
i(class=("fas fa-" + fontawesomeOutputName + " mr-2"))
span(class="d-inline d-md-none") Output #
span #{(voutIndex + 1).toLocaleString()}
if (tx.vout.length > 0)
span(class="d-inline d-md-none font-weight-light text-muted") / #{tx.vout.length.toLocaleString()}
div(class="tx-io-content")
div(class=("row pr-3"))
@ -169,7 +173,7 @@ div(class="row monospace")
else if (vout.scriptPubKey.asm && vout.scriptPubKey.asm.startsWith('OP_RETURN '))
span(class="monospace")
span(class="rounded bg-dark text-light px-2 py-1 mr-2") OP_RETURN
span(class="text-muted") #{utils.hex2ascii(vout.scriptPubKey.asm.substring("OP_RETURN ".length))}
span #{utils.hex2ascii(vout.scriptPubKey.asm.substring("OP_RETURN ".length))}
else
span(class="monospace")
@ -193,10 +197,10 @@ div(class="row monospace")
if (hiddenRowCount > 0)
a(href="javascript:void(0)", onclick=("showAllTxOutputs(this, '" + tx.txid + "');")) Show all #{tx.vout.length.toLocaleString()} outputs
div(class="row mb-5 pr-3")
div(class="row mb-2 pr-3")
div(class="col")
div(class="font-weight-bold text-left text-md-right")
span(class="d-inline d-md-none") Total Output:
span(class="d-block d-md-none") Total Output:
- var currencyValue = totalIOValues.output;
include ./value-display.pug

Loading…
Cancel
Save