From 107bbe711250ee09c75a0cb9d770aadb785ff18e Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Tue, 29 Aug 2017 17:01:24 +0100 Subject: [PATCH] Separate keys and values --- src/app/tabs/compile-tab.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 537d787d95..6da4e91508 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -90,9 +90,20 @@ var css = csjs` } .log { display: flex; - flex-direction: row; + flex-direction: column; align-items: baseline } + .key { + margin-right: 5px; + color: grey; + text-transform: uppercase; + width: 100%; + } + .value { + display: flex; + width: 100%; + margin-top: 1.5%; + } .copyDetails { margin-left: 2%; font-size: 14px; @@ -324,8 +335,13 @@ function compileTab (container, appAPI, appEvents, opts) { 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}
`) + var copyDetails = yo` { copy(details[x]) }} aria-hidden="true">` + log.appendChild(yo` +
+
${x} ${copyDetails}
+
${JSON.stringify(details[x], null, 4)}
+
+ `) }) modalDialog(contractName, log, {label: 'OK'}, {label: ''}) }