Skip to content

Commit ebf068d

Browse files
committed
Fix transfer popup height
1 parent 449ca1a commit ebf068d

File tree

2 files changed

+37
-32
lines changed

2 files changed

+37
-32
lines changed

packages/extension-ui/src/Popup/Transfer/index.tsx

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -125,30 +125,31 @@ function Transfer ({ className }: Props): React.ReactElement<Props> {
125125
}}
126126
value={to}
127127
/>
128-
<Dropdown
129-
className="dropdown"
130-
isDisabled={isBusy}
131-
label={t<string>('Asset type')}
132-
onChange={(asset: string) => {
133-
setAsset(asset);
134-
_removeError();
135-
}}
136-
options={[
137-
{ value: 'cennz', text: 'CENNZ' },
138-
{ value: 'cpay', text: 'CPAY' },
139-
]}
140-
value={asset}
141-
/>
142-
<AmountInput
143-
disabled={isBusy}
144-
label={t<string>('Send amount')}
145-
onChange={amount => {
146-
setAmount(amount);
147-
_removeError();
148-
}}
149-
placeholder="0.0000"
150-
value={amount}
151-
/>
128+
<div className="amount-container">
129+
<AmountInput
130+
disabled={isBusy}
131+
label={t<string>('Send amount')}
132+
onChange={amount => {
133+
setAmount(amount);
134+
_removeError();
135+
}}
136+
placeholder="0.0000"
137+
value={amount}
138+
/>
139+
<Dropdown
140+
className="asset-select"
141+
isDisabled={isBusy}
142+
onChange={(asset: string) => {
143+
setAsset(asset);
144+
_removeError();
145+
}}
146+
options={[
147+
{ value: 'cennz', text: 'CENNZ' },
148+
{ value: 'cpay', text: 'CPAY' },
149+
]}
150+
value={asset}
151+
/>
152+
</div>
152153
<InputWithLabel
153154
disabled={isBusy}
154155
isError={pass.length < MIN_LENGTH || !!passError}
@@ -192,4 +193,15 @@ export default styled(Transfer)`
192193
.dropdown {
193194
margin-bottom: 16px;
194195
}
196+
197+
.amount-container {
198+
position: relative;
199+
}
200+
201+
.asset-select {
202+
position: absolute;
203+
top: 26px;
204+
right: 0;
205+
width: 100px;
206+
}
195207
`;

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5100,14 +5100,7 @@ __metadata:
51005100
languageName: node
51015101
linkType: hard
51025102

5103-
"bn.js@npm:^5.0.0, bn.js@npm:^5.1.1":
5104-
version: 5.1.3
5105-
resolution: "bn.js@npm:5.1.3"
5106-
checksum: 991c1fefb03bd69315297d454b379d5a5dd4834ab97db3ec985714f00ff7d3cc19642e1ac6bdf0d9f04946cc9f1ad26a5b497b7f4e7fa1230caf68af46fbefe6
5107-
languageName: node
5108-
linkType: hard
5109-
5110-
"bn.js@npm:^5.1.3":
5103+
"bn.js@npm:^5.0.0, bn.js@npm:^5.1.1, bn.js@npm:^5.1.3":
51115104
version: 5.2.0
51125105
resolution: "bn.js@npm:5.2.0"
51135106
checksum: 7a73bdbba63013a7f9953fbbd6ea3351e4cf36d6fdbb5adf7969fcd65255b9c04f2994b0132d89d74ffe608a0eb5a48322526bee20c0e03e71e502603b420f63

0 commit comments

Comments
 (0)