Skip to content

Commit 8983e9e

Browse files
authored
fix: collectible contact dropdown size (#127)
1 parent 0171432 commit 8983e9e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/pages/Collectibles/SendEVMCollectible.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Stack,
99
Tooltip,
1010
Typography,
11+
styled,
1112
} from '@avalabs/core-k2-components';
1213

1314
import { useQueryParams } from '@src/hooks/useQueryParams';
@@ -36,6 +37,12 @@ type Props = SendPageProps<
3637
[NftTokenWithBalance]
3738
>;
3839

40+
const FlexScrollbars = styled(Scrollbars)`
41+
> div {
42+
display: flex;
43+
}
44+
}`;
45+
3946
export const SendEVMCollectible = ({
4047
network,
4148
fromAddress,
@@ -114,8 +121,15 @@ export const SendEVMCollectible = ({
114121

115122
return (
116123
<Stack sx={{ flexGrow: 1, alignItems: 'center', width: '100%', pt: 1 }}>
117-
<Scrollbars style={{ flexGrow: 1, maxHeight: 'unset', height: '100%' }}>
118-
<Stack ref={formRef}>
124+
<FlexScrollbars
125+
style={{
126+
flexGrow: 1,
127+
maxHeight: 'unset',
128+
height: '100%',
129+
display: 'flex',
130+
}}
131+
>
132+
<Stack ref={formRef} sx={{ display: 'flex', flexGrow: 1, mb: 2 }}>
119133
<ContactInput
120134
contact={contact}
121135
onChange={(newContact) => {
@@ -171,7 +185,7 @@ export const SendEVMCollectible = ({
171185
</Card>
172186
</Stack>
173187
</Stack>
174-
</Scrollbars>
188+
</FlexScrollbars>
175189
{!isContactsOpen && (
176190
<Stack
177191
sx={{

0 commit comments

Comments
 (0)