update to runtab

pull/1/head
Rob Stupay 6 years ago committed by yann300
parent f897ebdcdf
commit 01cfa5ae58
  1. 7
      src/app.js
  2. 2
      src/app/tabs/run-tab.js
  3. 6
      src/app/tabs/runTab/settings.js
  4. 5
      src/app/tabs/styles/run-tab-styles.js
  5. 6
      src/multiParamManager.js
  6. 8
      src/universal-dapp-styles.js

@ -78,7 +78,6 @@ var css = csjs`
overflow : hidden; overflow : hidden;
} }
.mainpanel { .mainpanel {
background-color : ${styles.colors.transparent};
display : flex; display : flex;
flex-direction : column; flex-direction : column;
position : absolute; position : absolute;
@ -87,7 +86,7 @@ var css = csjs`
overflow : hidden; overflow : hidden;
} }
.iconpanel { .iconpanel {
background-color : ${styles.leftPanel.backgroundColor_Panel}; background-color : #fafafa;
display : flex; display : flex;
flex-direction : column; flex-direction : column;
position : absolute; position : absolute;
@ -109,12 +108,12 @@ var css = csjs`
.highlightcode { .highlightcode {
position:absolute; position:absolute;
z-index:20; z-index:20;
background-color: ${styles.editor.backgroundColor_DebuggerMode}; background-color: var(--info);
} }
.highlightcode_fullLine { .highlightcode_fullLine {
position:absolute; position:absolute;
z-index:20; z-index:20;
background-color: ${styles.editor.backgroundColor_DebuggerMode}; background-color: var(--info);
opacity: 0.5; opacity: 0.5;
} }
` `

@ -114,7 +114,7 @@ class RunTab {
renderRecorderCard () { renderRecorderCard () {
const collapsedView = yo` const collapsedView = yo`
<div class=${css.recorderCollapsedView}> <div class=${css.recorderCollapsedView}>
<div class=${css.recorderCount}>${this.recorderCount}</div> <div class="${css.recorderCount} badge badge-pill badge-primary">${this.recorderCount}</div>
</div>` </div>`
const expandedView = yo` const expandedView = yo`

@ -86,15 +86,15 @@ class SettingsUI {
var gasPriceEl = yo` var gasPriceEl = yo`
<div class="${css.crow}"> <div class="${css.crow}">
<div class="${css.col1_1}">Gas limit</div> <div class="${css.col1_1}">Gas limit</div>
<input type="number" class="${css.col2}" id="gasLimit" value="3000000"> <input type="number" class="form-control ${css.gasNval} ${css.col2}" id="gasLimit" value="3000000">
</div> </div>
` `
var valueEl = yo` var valueEl = yo`
<div class="${css.crow}"> <div class="${css.crow}">
<div class="${css.col1_1}">Value</div> <div class="${css.col1_1}">Value</div>
<input type="text" class="${css.col2_1}" id="value" value="0" title="Enter the value and choose the unit"> <input type="text" class="form-control ${css.gasNval} ${css.col2_1}" id="value" value="0" title="Enter the value and choose the unit">
<select name="unit" class="${css.col2_2}" id="unit"> <select name="unit" class="form-control ${css.gasNval} ${css.col2_2}" id="unit">
<option data-unit="wei">wei</option> <option data-unit="wei">wei</option>
<option data-unit="gwei">gwei</option> <option data-unit="gwei">gwei</option>
<option data-unit="finney">finney</option> <option data-unit="finney">finney</option>

@ -226,6 +226,11 @@ var css = csjs`
font-size: 13px; font-size: 13px;
color: var(--danger); color: var(--danger);
} }
.gasNval {
transform: scale(0.7);
transform-origin: left;
margin-right: 10px;
}
` `
module.exports = css module.exports = css

@ -125,7 +125,7 @@ class MultiParamManager {
} }
this.contractActionsContainerSingle = yo`<div class="${css.contractActionsContainerSingle}" > this.contractActionsContainerSingle = yo`<div class="${css.contractActionsContainerSingle}" >
<button onclick=${() => { onClick() }} class="${css.instanceButton}">${title}</button>${this.basicInputField}<i class="fa fa-angle-down ${css.methCaret}" onclick=${() => { this.switchMethodViewOn() }} title=${title} ></i> <button onclick=${() => { onClick() }} class="btn btn-sm ${css.instanceButton}">${title}</button>${this.basicInputField}<i class="fa fa-angle-down ${css.methCaret}" onclick=${() => { this.switchMethodViewOn() }} title=${title} ></i>
</div>` </div>`
this.multiFields = this.createMultiFields() this.multiFields = this.createMultiFields()
@ -142,9 +142,9 @@ class MultiParamManager {
var button = yo`<button onclick=${() => { multiOnClick() }} class="${css.instanceButton}"></button>` var button = yo`<button onclick=${() => { multiOnClick() }} class="${css.instanceButton}"></button>`
this.contractActionsContainerMulti = yo`<div class="${css.contractActionsContainerMulti}" > this.contractActionsContainerMulti = yo`<div class="${css.contractActionsContainerMulti}" >
<div class="card ${css.contractActionsContainerMultiInner}" > <div class="${css.contractActionsContainerMultiInner}" >
<div onclick=${() => { this.switchMethodViewOff() }} class="${css.multiHeader}"> <div onclick=${() => { this.switchMethodViewOff() }} class="${css.multiHeader}">
<div class="card-title ${css.multiTitle}">${title}</div> <div class="${css.multiTitle}">${title}</div>
<i class='fa fa-angle-up ${css.methCaret}'></i> <i class='fa fa-angle-up ${css.methCaret}'></i>
</div> </div>
${this.multiFields} ${this.multiFields}

@ -36,7 +36,8 @@ var css = csjs`
} }
.instance { .instance {
min-width: 310px; min-width: 310px;
display: flex; display: block;
/* display: flex; */
flex-direction: column; flex-direction: column;
padding: 5px 0 0 10px; padding: 5px 0 0 10px;
margin-bottom: 10px; margin-bottom: 10px;
@ -44,12 +45,12 @@ var css = csjs`
.instance .title:before { .instance .title:before {
content: "\\25BE"; content: "\\25BE";
margin-right: 5%; margin-right: 5%;
font-size: 2rem font-size: 1.2rem
} }
.instance.hidesub .title:before { .instance.hidesub .title:before {
content: "\\25B8"; content: "\\25B8";
margin-right: 5%; margin-right: 5%;
font-size: 2rem; font-size: 1.2rem;
} }
.instance.hidesub > * { .instance.hidesub > * {
display: none; display: none;
@ -156,7 +157,6 @@ var css = csjs`
} }
.contractActionsContainerMultiInner { .contractActionsContainerMultiInner {
margin-bottom: 10px; margin-bottom: 10px;
border: 1px solid var(--info);
padding: 0px 5px 5px 0px; padding: 0px 5px 5px 0px;
background-color: var(--light); background-color: var(--light);
width: 99%; width: 99%;

Loading…
Cancel
Save