market group modal scroll fix (#1009)

This commit is contained in:
ingawei 2022-10-05 17:07:41 -05:00 committed by GitHub
parent 60aa294131
commit b8911cafe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,30 +53,30 @@ export function ContractGroupsList(props: {
/> />
</Col> </Col>
)} )}
{groups.length === 0 && ( <Col className="h-96 overflow-auto">
<Col className="ml-2 h-full justify-center text-gray-500"> {groups.length === 0 && (
No groups yet... <Col className="text-greyscale-4">No groups yet...</Col>
</Col> )}
)} {groups.map((group) => (
{groups.map((group) => ( <Row
<Row key={group.id}
key={group.id} className={clsx('items-center justify-between gap-2 p-2')}
className={clsx('items-center justify-between gap-2 p-2')} >
> <Row className="line-clamp-1 items-center gap-2">
<Row className="line-clamp-1 items-center gap-2"> <GroupLinkItem group={group} />
<GroupLinkItem group={group} /> </Row>
{user && canModifyGroupContracts(group, user.id) && (
<Button
color={'gray-white'}
size={'xs'}
onClick={() => removeContractFromGroup(group, contract)}
>
<XIcon className="text-greyscale-4 h-4 w-4" />
</Button>
)}
</Row> </Row>
{user && canModifyGroupContracts(group, user.id) && ( ))}
<Button </Col>
color={'gray-white'}
size={'xs'}
onClick={() => removeContractFromGroup(group, contract)}
>
<XIcon className="h-4 w-4 text-gray-500" />
</Button>
)}
</Row>
))}
</Col> </Col>
) )
} }