mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 17:37:33 +00:00
fix(ui) Make profile icon clickable to expand header menu (#5317)
This commit is contained in:
parent
4c94a7c30a
commit
cb54629af4
@ -34,6 +34,12 @@ const DownArrow = styled(CaretDownOutlined)`
|
||||
color: ${ANTD_GRAY[7]};
|
||||
`;
|
||||
|
||||
const DropdownWrapper = styled.div`
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
`;
|
||||
|
||||
interface Props {
|
||||
urn: string;
|
||||
pictureLink?: string;
|
||||
@ -102,12 +108,12 @@ export const ManageAccount = ({ urn: _urn, pictureLink: _pictureLink, name }: Pr
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<CustomAvatar photoUrl={_pictureLink} style={{ marginRight: 4 }} name={name} />
|
||||
<Dropdown overlay={menu} trigger={['click']}>
|
||||
<Dropdown overlay={menu} trigger={['click']}>
|
||||
<DropdownWrapper>
|
||||
<CustomAvatar photoUrl={_pictureLink} style={{ marginRight: 4 }} name={name} />
|
||||
<DownArrow />
|
||||
</Dropdown>
|
||||
</>
|
||||
</DropdownWrapper>
|
||||
</Dropdown>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user