diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index b567907662..1b8a14cfe5 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -108,9 +108,16 @@ class ContractDropdownUI { } var selectedContract = this.getSelectedContract() - var createConstructorInstance = new MultiParamManager(0, selectedContract.getConstructorInterface(), (valArray, inputsValues) => { - this.createInstance(inputsValues) - }, selectedContract.getConstructorInputs(), 'Deploy', selectedContract.bytecodeObject) + var createConstructorInstance = new MultiParamManager( + 0, + selectedContract.getConstructorInterface(), + (valArray, inputsValues) => { + this.createInstance(inputsValues) + }, + selectedContract.getConstructorInputs(), + 'Deploy', + selectedContract.bytecodeObject + ) this.createPanel.appendChild(createConstructorInstance.render()) } diff --git a/src/app/tabs/styles/run-tab-styles.js b/src/app/tabs/styles/run-tab-styles.js index 81331221ae..ed1db69455 100644 --- a/src/app/tabs/styles/run-tab-styles.js +++ b/src/app/tabs/styles/run-tab-styles.js @@ -107,6 +107,9 @@ var css = csjs` flex-direction: row; align-items: baseline; } + .button button{ + flex: none; + } .button { display: flex; align-items: center; diff --git a/src/app/ui/multiParamManager.js b/src/app/ui/multiParamManager.js index 615c5901bd..72551ce12f 100644 --- a/src/app/ui/multiParamManager.js +++ b/src/app/ui/multiParamManager.js @@ -119,6 +119,7 @@ class MultiParamManager { this.basicInputField = yo`` this.basicInputField.setAttribute('placeholder', this.inputs) this.basicInputField.setAttribute('title', this.inputs) + this.basicInputField.setAttribute('style', "flex: 4") var onClick = (domEl) => { this.clickCallBack(this.funABI.inputs, this.basicInputField.value) @@ -127,9 +128,14 @@ class MultiParamManager { // otherwise it needs to have btn-warning injected // or do we need to only do this in 1 place - I have a feeling that this will happen in multiple places - this.contractActionsContainerSingle = yo`
- ${this.basicInputField} { this.switchMethodViewOn() }} title=${title} > -
` + this.contractActionsContainerSingle = yo` +
+ + ${this.basicInputField} + { this.switchMethodViewOn() }} title=${title} > +
` this.multiFields = this.createMultiFields() @@ -195,7 +201,7 @@ class MultiParamManager { this.contractActionsContainerSingle.querySelector('i').style.visibility = 'hidden' } else { this.contractActionsContainerSingle.querySelector('i').style.visibility = 'hidden' - this.basicInputField.style.display = 'none' + this.basicInputField.style.visibility = 'hidden' } if (this.funABI.payable === true) { diff --git a/src/universal-dapp-styles.js b/src/universal-dapp-styles.js index b25e0b0020..d0c2774c8a 100644 --- a/src/universal-dapp-styles.js +++ b/src/universal-dapp-styles.js @@ -97,6 +97,7 @@ var css = csjs` } .instanceButton { border-radius: 3px; + flex: 3; } .closeIcon { font-size: 12px;