Skip to content

Commit b0d44fa

Browse files
committed
custom gas limit textbox
1 parent 8a60071 commit b0d44fa

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function GasLimitUI(props: GasPriceProps) {
5151
<FormattedMessage id="udapp.gasLimitAuto" />
5252
</label>
5353
</div>
54-
<div className="d-flex pb-1 custom-control custom-radio">
54+
<div className="d-flex custom-control custom-radio align-items-baseline">
5555
<input
5656
className="custom-control-input"
5757
type="radio"
@@ -61,20 +61,20 @@ export function GasLimitUI(props: GasPriceProps) {
6161
checked={!gasLimitAuto}
6262
id="glManualConfig"
6363
/>
64-
<label className="mb-1 w-100 form-check-label custom-control-label" htmlFor="glManualConfig" data-id="glManualConfiguration">
64+
<label className="mb-1 w-50 form-check-label custom-control-label" htmlFor="glManualConfig" data-id="glManualConfiguration">
6565
<FormattedMessage id="udapp.gasLimitManual" />
66-
<CustomTooltip placement={'right'} tooltipClasses="text-nowrap" tooltipId="remixGasPriceTooltip" tooltipText={<FormattedMessage id="udapp.tooltipText4" />}>
67-
<input
68-
type="number"
69-
ref={inputComponent}
70-
disabled={gasLimitAuto}
71-
className="mt-2 form-control"
72-
id="gasLimit"
73-
value={props.gasLimit === 0 ? currentGasLimit.current : props.gasLimit}
74-
onChange={handleGasLimit}
75-
/>
76-
</CustomTooltip>
7766
</label>
67+
<CustomTooltip placement={'right'} tooltipClasses="text-nowrap" tooltipId="remixGasPriceTooltip" tooltipText={<FormattedMessage id="udapp.tooltipText4" />}>
68+
<input
69+
type="number"
70+
ref={inputComponent}
71+
disabled={gasLimitAuto}
72+
className="form-control w-100 float-right"
73+
id="gasLimit"
74+
value={props.gasLimit === 0 ? currentGasLimit.current : props.gasLimit}
75+
onChange={handleGasLimit}
76+
/>
77+
</CustomTooltip>
7878
</div>
7979
</div>
8080
</div>

0 commit comments

Comments
 (0)