diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 0f8a36b69a..1cbcb84913 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -53,28 +53,25 @@ var css = csjs` .txTable, .tr, .td { border-collapse: collapse; font-size: 10px; - } - .tr { - width: 70%; - border-bottom: 1px solid white; - display: flex; - align-items: center; - } - .td:first-child { - min-width: 30%; - width: 30%; - display: flex; - align-items: baseline; - font-weight: bold; + color: ${styles.terminal.text_Primary}; + border: 1px solid ${styles.terminal.text_Secondary}; } #txTable { margin-top: 1%; margin-bottom: 5%; align-self: center; + width: 85%; } .tr, .td { + padding: 4px; vertical-align: baseline; } + .td:first-child { + min-width: 30%; + width: 30%; + align-items: baseline; + font-weight: bold; + } .tableTitle { width: 25%; } @@ -192,7 +189,7 @@ function renderKnownTransaction (self, data) { var tx = yo`
- + ${context(self, {from, to, data})}
[debug]
@@ -205,8 +202,8 @@ function renderKnownTransaction (self, data) { function txDetails () { var log = document.querySelector("[class^='log']") var caret = document.querySelector("[class^='caret']") - var caretDown = yo`` - var caretRight = yo`` + var caretDown = yo`` + var caretRight = yo`` if (table && table.parentNode) { tx.removeChild(table) log.removeChild(caret) @@ -251,7 +248,7 @@ function renderCall (self, data) { var tx = yo`
- + [call]
from: ${from}
@@ -271,8 +268,8 @@ function renderCall (self, data) { function txDetails () { var log = document.querySelector("[class^='log']") var caret = document.querySelector("[class^='caret']") - var caretDown = yo`` - var caretRight = yo`` + var caretDown = yo`` + var caretRight = yo`` if (table && table.parentNode) { tx.removeChild(table) log.removeChild(caret) @@ -309,7 +306,7 @@ function renderUnknownTransaction (self, data) { } var tx = yo` - +
${context(self, {from, to, data})}
@@ -322,8 +319,8 @@ function renderUnknownTransaction (self, data) { function txDetails () { var log = document.querySelector("[class^='log']") var caret = document.querySelector("[class^='caret']") - var caretDown = yo`` - var caretRight = yo`` + var caretDown = yo`` + var caretRight = yo`` if (table && table.parentNode) { tx.removeChild(table) log.removeChild(caret) @@ -434,10 +431,9 @@ function createTable (opts) { var contractAddress = yo` - contractAddress - ${copyToClipboard(() => opts.contractAddress)} - + contractAddress ${opts.contractAddress} + ${copyToClipboard(() => opts.contractAddress)} ` @@ -445,10 +441,9 @@ function createTable (opts) { var from = yo` - from - ${copyToClipboard(() => opts.from)} - + from ${opts.from} + ${copyToClipboard(() => opts.from)} ` @@ -463,10 +458,9 @@ function createTable (opts) { } var to = yo` - to - ${copyToClipboard(() => data.to ? data.to : toHash)} - + to ${toHash} + ${copyToClipboard(() => data.to ? data.to : toHash)} ` @@ -474,10 +468,9 @@ function createTable (opts) { var gas = yo` - gas - ${copyToClipboard(() => opts.gas)} - + gas ${opts.gas} gas + ${copyToClipboard(() => opts.gas)} ` @@ -490,10 +483,9 @@ function createTable (opts) { if (opts.transactionCost) { table.appendChild(yo` - transaction cost - ${copyToClipboard(() => opts.transactionCost)} - + transaction cost ${opts.transactionCost} gas ${callWarning} + ${copyToClipboard(() => opts.transactionCost)} `) } @@ -501,20 +493,18 @@ function createTable (opts) { if (opts.executionCost) { table.appendChild(yo` - execution cost - ${copyToClipboard(() => opts.executionCost)} - + execution cost ${opts.executionCost} gas ${callWarning} + ${copyToClipboard(() => opts.executionCost)} `) } var hash = yo` - hash - ${copyToClipboard(() => opts.hash)} - + hash ${opts.hash} + ${copyToClipboard(() => opts.hash)} ` @@ -522,10 +512,9 @@ function createTable (opts) { var input = yo` - input - ${copyToClipboard(() => opts.input)} - + input ${opts.input} + ${copyToClipboard(() => opts.input)} ` @@ -534,10 +523,9 @@ function createTable (opts) { if (opts['decoded input']) { var inputDecoded = yo` - decoded input - ${copyToClipboard(opts['decoded input'])} - + decoded input ${opts['decoded input']} + ${copyToClipboard(opts['decoded input'])} ` table.appendChild(inputDecoded) @@ -558,12 +546,11 @@ function createTable (opts) { } var logs = yo` - logs - ${copyToClipboard(() => JSON.stringify(stringified, null, '\t'))} - ${copyToClipboard(() => JSON.stringify(opts.logs.raw || '0'))} - + logs ${JSON.stringify(stringified, null, '\t')} + ${copyToClipboard(() => JSON.stringify(stringified, null, '\t'))} + ${copyToClipboard(() => JSON.stringify(opts.logs.raw || '0'))} ` @@ -572,10 +559,9 @@ function createTable (opts) { var val = opts.val != null ? typeConversion.toInt(opts.val) : 0 val = yo` - value - ${copyToClipboard(() => `${val} wei`)} - + value ${val} wei + ${copyToClipboard(() => `${val} wei`)} `