Merge pull request #1427 from ethereum/runTabUI

Run tab ui
pull/3094/head
yann300 6 years ago committed by GitHub
commit 43d4d2c390
  1. 10
      src/app/tabs/run-tab.js
  2. 12
      src/app/tabs/styles/run-tab-styles.js
  3. 1
      src/app/ui/card.js
  4. 8
      src/universal-dapp-styles.js

@ -530,10 +530,14 @@ function settings (container, self) {
` `
var accountEl = yo` var accountEl = yo`
<div class="${css.crow}"> <div class="${css.crow}">
<div class="${css.col1_1}">Account</div> <div class="${css.col1_1}">
<select name="txorigin" class="${css.select}" id="txorigin"></select> Account
${copyToClipboard(() => document.querySelector('#runTabView #txorigin').value)}
<i class="fa fa-plus-circle ${css.icon}" aria-hidden="true" onclick=${newAccount} title="Create a new account"></i> <i class="fa fa-plus-circle ${css.icon}" aria-hidden="true" onclick=${newAccount} title="Create a new account"></i>
</div>
<div class=${css.account}>
<select name="txorigin" class="${css.select}" id="txorigin"></select>
${copyToClipboard(() => document.querySelector('#runTabView #txorigin').value)}
</div>
</div> </div>
` `
var gasPriceEl = yo` var gasPriceEl = yo`

@ -35,6 +35,7 @@ var css = csjs`
margin-top: .5em; margin-top: .5em;
display: flex; display: flex;
align-items: center; align-items: center;
width: 500px;
} }
.col1 { .col1 {
width: 30%; width: 30%;
@ -52,14 +53,21 @@ var css = csjs`
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
width: 259px;
}
.account {
display: flex;
align-items: center;
width: 266px;
} }
.col2 { .col2 {
${styles.rightPanel.runTab.input_RunTab} ${styles.rightPanel.runTab.input_RunTab}
border-radius: 3px;
} }
.col2_1 { .col2_1 {
${styles.rightPanel.runTab.input_RunTab} ${styles.rightPanel.runTab.input_RunTab}
width: 165px; width: 164px;
min-width: 165px; min-width: 164px;
} }
.col2_2 { .col2_2 {
${styles.rightPanel.runTab.dropdown_RunTab} ${styles.rightPanel.runTab.dropdown_RunTab}

@ -80,7 +80,6 @@ const css = csjs`
} }
.expandCollapseButton {} .expandCollapseButton {}
.arrow { .arrow {
margin-right : 15px;
color : ${styles.appProperties.icon_Color}; color : ${styles.appProperties.icon_Color};
font-weight : bold; font-weight : bold;
cursor : pointer; cursor : pointer;

@ -78,7 +78,10 @@ var css = csjs`
} }
.contractActions { .contractActions {
} }
.instanceButton {} .instanceButton {
border-radius: 3px;
border: .3px solid hsla(0, 82%, 82%, .5);
}
.closeIcon { .closeIcon {
font-size: 12px; font-size: 12px;
cursor: pointer; cursor: pointer;
@ -157,7 +160,8 @@ var css = csjs`
border: 1px solid ${styles.appProperties.solidBorderBox_BorderColor}; border: 1px solid ${styles.appProperties.solidBorderBox_BorderColor};
padding: 0px 5px 5px 0px; padding: 0px 5px 5px 0px;
background-color: ${styles.appProperties.primary_BackgroundColor}; background-color: ${styles.appProperties.primary_BackgroundColor};
width: 100%; width: 99%;
border-radius: 3px;
} }
.multiHeader { .multiHeader {
text-align: left; text-align: left;

Loading…
Cancel
Save