Skip to content

Commit 13d19f0

Browse files
LianaHusAniket-Engg
authored andcommitted
mprovements
1 parent c3681e4 commit 13d19f0

File tree

4 files changed

+35
-29
lines changed

4 files changed

+35
-29
lines changed

libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
338338
tooltipId="info-evm-version-warn"
339339
tooltipText={<span className="text-left">
340340
<FormattedMessage id='udapp.warningEvmVersion' values={{ evmVersion }}/>
341-
</span>}
341+
</span>
342+
}
342343
>
343344
<span className='udapp_evmVersion badge alert-warning'>evm version: {evmVersion}</span>
344345
</CustomTooltip>

libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -274,20 +274,25 @@ export function ContractGUI (props: ContractGUIProps) {
274274
style={{ display: toggleContainer ? "none" : "flex" }}
275275
>
276276
<CustomTooltip
277+
delay={0}
277278
placement={"right"}
278279
tooltipClasses="text-wrap"
279280
tooltipId="remixUdappInstanceButtonTooltip"
280281
tooltipText={toggleUpgradeImp && !proxyAddress ? 'Proxy address cannot be empty' : (props.inputs !=='' && basicInput === '') ? 'Input required' : buttonOptions.title}
281282
>
282-
<button
283+
<div
284+
className='d-flex'
283285
onClick={handleActionClick}
284-
className={`udapp_instanceButton ${props.widthClass} btn btn-sm ${buttonOptions.classList}`}
285-
data-id={buttonOptions.dataId}
286-
data-title={buttonOptions.title}
287-
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')}
288286
>
289-
<div className='text-nowrap overflow-hidden text-truncate'>{title}</div>
290-
</button>
287+
<button
288+
className={`udapp_instanceButton text-nowrap overflow-hidden text-truncate ${props.widthClass} btn btn-sm ${buttonOptions.classList}`}
289+
data-id={buttonOptions.dataId}
290+
data-title={buttonOptions.title}
291+
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')}
292+
>
293+
{title}
294+
</button>
295+
</div>
291296
</CustomTooltip>
292297
<input
293298
className="form-control"
@@ -401,15 +406,18 @@ export function ContractGUI (props: ContractGUIProps) {
401406
tooltipId="remixUdappInstanceButtonTooltip"
402407
tooltipText={buttonOptions.title}
403408
>
404-
<button
405-
type="button"
409+
<div
406410
onClick={handleExpandMultiClick}
407-
data-id={buttonOptions.dataId}
408-
className={`udapp_instanceButton ${buttonOptions.classList}`}
409-
disabled={props.disabled}
410411
>
411-
{buttonOptions.content}
412-
</button>
412+
<button
413+
type="button"
414+
data-id={buttonOptions.dataId}
415+
className={`udapp_instanceButton ${buttonOptions.classList}`}
416+
disabled={props.disabled || (props.inputs !=='' && basicInput === '')}
417+
>
418+
{buttonOptions.content}
419+
</button>
420+
</div>
413421
</CustomTooltip>
414422
</div>
415423
</div>

libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,18 @@ export function UniversalDappUI (props: UdappProps) {
301301

302302
return key === funcIndex
303303
? Object.keys(response || {}).map(
304-
(innerkey, index) => {
305-
return renderData(
306-
props.instance.decodedResponse[key][
307-
innerkey
308-
],
309-
response,
310-
innerkey,
304+
(innerkey, index) => {
305+
return renderData(
306+
props.instance.decodedResponse[key][
311307
innerkey
312-
);
313-
}
314-
)
315-
: null;
308+
],
309+
response,
310+
innerkey,
311+
innerkey
312+
);
313+
}
314+
)
315+
: null;
316316
}
317317
)}
318318
</TreeView>

libs/remix-ui/run-tab/src/lib/css/run-tab.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,6 @@
361361
margin:0;
362362
word-break: inherit;
363363
}
364-
.udapp_contractProperty button:disabled {
365-
cursor: not-allowed;
366-
}
367364
.udapp_contractProperty.udapp_constant button {
368365
min-width: 100px;
369366
width: 100px;

0 commit comments

Comments
 (0)