From 13d19f0b42b173e36e2132bdb99e82d42b7d71e8 Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 10 Jul 2023 15:28:05 +0200 Subject: [PATCH] mprovements --- .../src/lib/components/contractDropdownUI.tsx | 3 +- .../src/lib/components/contractGUI.tsx | 36 +++++++++++-------- .../src/lib/components/universalDappUI.tsx | 22 ++++++------ libs/remix-ui/run-tab/src/lib/css/run-tab.css | 3 -- 4 files changed, 35 insertions(+), 29 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx index 758207f66e..4196c0e550 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx @@ -338,7 +338,8 @@ export function ContractDropdownUI (props: ContractDropdownProps) { tooltipId="info-evm-version-warn" tooltipText={ - } + + } > evm version: {evmVersion} diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index 233a5be7bf..14ec0eba3e 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -274,20 +274,25 @@ export function ContractGUI (props: ContractGUIProps) { style={{ display: toggleContainer ? "none" : "flex" }} > - + + - + + diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 6f81417ced..c56fc3f2f2 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -301,18 +301,18 @@ export function UniversalDappUI (props: UdappProps) { return key === funcIndex ? Object.keys(response || {}).map( - (innerkey, index) => { - return renderData( - props.instance.decodedResponse[key][ - innerkey - ], - response, - innerkey, + (innerkey, index) => { + return renderData( + props.instance.decodedResponse[key][ innerkey - ); - } - ) - : null; + ], + response, + innerkey, + innerkey + ); + } + ) + : null; } )} diff --git a/libs/remix-ui/run-tab/src/lib/css/run-tab.css b/libs/remix-ui/run-tab/src/lib/css/run-tab.css index cb57ad001a..c3ec9a555a 100644 --- a/libs/remix-ui/run-tab/src/lib/css/run-tab.css +++ b/libs/remix-ui/run-tab/src/lib/css/run-tab.css @@ -361,9 +361,6 @@ margin:0; word-break: inherit; } -.udapp_contractProperty button:disabled { - cursor: not-allowed; -} .udapp_contractProperty.udapp_constant button { min-width: 100px; width: 100px;