From ad882315fd4830301721efee2a270e370a4af520 Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 11 May 2022 18:00:34 +0200 Subject: [PATCH] UI improvements --- .../src/lib/compiler-container.tsx | 152 +++++++++--------- 1 file changed, 79 insertions(+), 73 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 78a147387a..be6836d64a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -620,81 +620,27 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
-
- - +
+ +
-
- { !showFilePathInput && {state.configFilePath} } - { - if (event.key === 'Enter') { - handleConfigPathChange() - } - }} - /> - { !showFilePathInput && } -
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- { handleOptimizeChange(e.target.checked) }} className="custom-control-input" id="optimize" type="checkbox" checked={state.optimize} /> - - onChangeRuns(e.target.value)} - disabled={!state.optimize} - /> -
-
+
+ +
-
@@ -735,6 +681,66 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
} +
+ +
+ + +
+
+
+ + +
+
+ + +
+
+
+ { handleOptimizeChange(e.target.checked) }} disabled={state.useFileConfiguration} className="custom-control-input" id="optimize" type="checkbox" checked={state.optimize} /> + + onChangeRuns(e.target.value)} + disabled={!state.optimize || state.useFileConfiguration} + /> +
+
+
+
+ + +
+
+ { (!showFilePathInput && state.useFileConfiguration) && {state.configFilePath} } + { (!showFilePathInput&& !state.useFileConfiguration) && {state.configFilePath} } + { + if (event.key === 'Enter') { + handleConfigPathChange() + } + }} + /> + { !showFilePathInput && } +
+