styles fixes

pull/1/head
LianaHus 6 years ago
parent 66e1c95b3a
commit 0d2afd0245
  1. 5
      src/app/execution/txLogger.js
  2. 8
      src/app/tabs/styles/run-tab-styles.js
  3. 4
      src/universal-dapp-ui.js

@ -107,6 +107,7 @@ var css = csjs`
margin-left: auto; margin-left: auto;
} }
.debug { .debug {
white-space: nowrap;
} }
.debug:hover { .debug:hover {
opacity: 0.8; opacity: 0.8;
@ -244,7 +245,7 @@ function renderCall (self, data) {
<div class=${css.txItem}><span class=${css.txItemTitle}>data:</span> ${input}</div> <div class=${css.txItem}><span class=${css.txItemTitle}>data:</span> ${input}</div>
</span> </span>
<div class=${css.buttons}> <div class=${css.buttons}>
<div class=${css.debug} onclick=${(e) => debug(e, data, self)}>Debug</div> <div class="${css.debug} btn btn-primary btn-sm" onclick=${(e) => debug(e, data, self)}>Debug</div>
</div> </div>
<i class="${css.arrow} fas fa-angle-down"></i> <i class="${css.arrow} fas fa-angle-down"></i>
</div> </div>
@ -264,7 +265,7 @@ function renderUnknownTransaction (self, data) {
${checkTxStatus(data.receipt || data.tx, txType)} ${checkTxStatus(data.receipt || data.tx, txType)}
${context(self, {from, to, data})} ${context(self, {from, to, data})}
<div class=${css.buttons}> <div class=${css.buttons}>
<div class=${css.debug} onclick=${(e) => debug(e, data, self)}>Debug</div> <div class="${css.debug} btn btn-primary btn-sm" onclick=${(e) => debug(e, data, self)}>Debug</div>
</div> </div>
<i class="${css.arrow} fas fa-angle-down"></i> <i class="${css.arrow} fas fa-angle-down"></i>
</div> </div>

@ -63,10 +63,6 @@ var css = csjs`
min-width: 164px; min-width: 164px;
} }
.col2_2 { .col2_2 {
width: 100px;
min-width: 82px;
/* position: absolute; */
/* margin-left: 100px; */
} }
.select { .select {
font-weight: normal; font-weight: normal;
@ -232,12 +228,14 @@ var css = csjs`
/* transform: scale(0.7); */ /* transform: scale(0.7); */
/* transform-origin: left; */ /* transform-origin: left; */
margin-right: 10px; margin-right: 10px;
width: 120px; width: 100px;
font-size: 0.8rem;
} }
.gasNvalUnit { .gasNvalUnit {
/* transform: scale(0.7); */ /* transform: scale(0.7); */
/* transform-origin: left; */ /* transform-origin: left; */
margin-right: 10px; margin-right: 10px;
font-size: 0.8rem;
} }
` `

@ -73,12 +73,12 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
<div class="input-group ${css.nameNbuts}"> <div class="input-group ${css.nameNbuts}">
<div class="${css.titleText} input-group-prepend"><span class="input-group-text ${css.spanTitleText}"> ${contractName} at ${shortAddress} (${context})</span></div> <div class="${css.titleText} input-group-prepend"><span class="input-group-text ${css.spanTitleText}"> ${contractName} at ${shortAddress} (${context})</span></div>
<div class="btn-group"> <div class="btn-group">
<button class="btn btn-secondary">${copyToClipboard(() => address)}</button> <button class="btn p-2 btn-secondary">${copyToClipboard(() => address)}</button>
</div> </div>
</div> </div>
</div>` </div>`
var close = yo`<button class="${css.udappClose} btn btn-secondary" onclick=${remove}><i class="${css.closeIcon} fas fa-times" aria-hidden="true"></i></button>` var close = yo`<button class="${css.udappClose} p-2 btn btn-secondary" onclick=${remove}><i class="${css.closeIcon} fas fa-times" aria-hidden="true"></i></button>`
title.querySelector('.btn-group').appendChild(close) title.querySelector('.btn-group').appendChild(close)
var contractActionsWrapper = yo` var contractActionsWrapper = yo`

Loading…
Cancel
Save