diff --git a/.gitignore b/.gitignore index 646fe3ad7e..128b36dbb3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ reports soljson.js npm-debug.log* babelify-src +package-lock.json diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index a91f2f263f..c154d9c66e 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -92,12 +92,17 @@ var css = csjs` min-width: 70px; margin-left: 2%; } + .log { + display: flex; + flex-direction: row; + align-items: baseline + } .copyDetails { - margin-top: 5%; - font-size: 20px; + margin-left: 2%; + font-size: 14px; cursor: pointer; color: ${styles.colors.grey}; - opacity: .5; + opacity: .3; } .copyDetails:hover { opacity: 1; @@ -282,9 +287,13 @@ function compileTab (container, appAPI, appEvents, opts) { function details () { var select = el.querySelector('select') var contractName = select.children[select.selectedIndex].innerText - var details = JSON.stringify(contractsDetails[contractName], null, '\t') - var copyDetails = yo`
{ copy(details) }} aria-hidden="true">
` - var log = yo`
${details} ${copyDetails}
` + var details = contractsDetails[contractName] + var keys = Object.keys(contractsDetails[contractName]) + var log = yo`
` + keys.map(x => { + var copyDetails = yo` { copy(details[x]) }} aria-hidden="true">` + log.appendChild(yo`
${x}: ${JSON.stringify(details[x], null, 4)}
${copyDetails}
`) + }) modalDialog(contractName, log, {label: 'OK'}, {label: ''}) }