From f2d7f3826495e8a426c39bc607d755419404c7a7 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Fri, 24 Aug 2018 00:55:09 +0100 Subject: [PATCH] Fix compilation buttons area --- src/app/tabs/compile-tab.js | 52 +++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 42ff92f449..38b6ea3665 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -195,14 +195,6 @@ module.exports = class CompileTab { if (self.data.allversions && self.data.selectedVersion) self._updateVersionSelector() self._view.version = yo`` - self._view.config.solidity = yo` -
- Current version: ${self._view.version} -
- ${self._view.versionSelector} -
-
` - self._view.warnCompilationSlow = yo`` self._view.compileIcon = yo`` self._view.compileButton = yo`
${self._view.compileIcon} Start to compile
` @@ -212,21 +204,27 @@ module.exports = class CompileTab { if (self.data.hideWarnings) self._view.hideWarningsBox.setAttribute('checked', '') self._view.compileContainer = yo`
- ${self._view.config.solidity} -
- ${self._view.compileButton} - ${self._view.warnCompilationSlow} -
- ${self._view.autoCompile} - Auto compile -
+
+ Current version: ${self._view.version}
-
${self._view.optimize}
- Enable Optimization + ${self._view.versionSelector}
-
- ${self._view.hideWarningsBox} - Hide warnings +
+
+
+ ${self._view.autoCompile} + Auto compile +
+
+
${self._view.optimize}
+ Enable Optimization +
+
+ ${self._view.hideWarningsBox} + Hide warnings +
+
+ ${self._view.compileButton}
` @@ -462,7 +460,7 @@ const css = csjs` } .select { font-weight: bold; - margin-top: 1em; + margin: 10px 0px; ${styles.rightPanel.settingsTab.dropdown_SelectCompiler}; } .info { @@ -509,6 +507,7 @@ const css = csjs` display: flex; align-items: center; flex-wrap: wrap; + justify-content: flex-end; } .name { display: flex; @@ -516,6 +515,12 @@ const css = csjs` .size { display: flex; } + .checkboxes { + display: flex; + width: 100%; + justify-content: space-between; + flex-wrap: wrap; + } .compileButton { ${styles.rightPanel.compileTab.button_Compile}; width: 120px; @@ -533,6 +538,9 @@ const css = csjs` align-items: center; margin-bottom: 2%; } + .optimizeContainer { + display: flex; + } .contractNames { ${styles.rightPanel.compileTab.dropdown_CompileContract}; }