Commit a96bdaad authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: align social overflow icon on mobile (#5561)

align social overflow on mobile
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent b89860dc
......@@ -21,6 +21,14 @@ const PercentChange = styled.div<{ isNegative: boolean }>`
justify-content: center;
`
const MobileSocialsOverflowIcon = styled.div`
display: flex;
margin-left: 4px;
flex-direction: column;
justify-content: center;
height: 28px;
`
const MobileSocialsIcon = ({ children, href }: { children: ReactNode; href: string }) => {
return (
<Box
......@@ -50,13 +58,13 @@ const MobileSocialsPopover = ({
}) => {
return (
<>
<Row marginLeft="4" onClick={() => toggleCollectionSocials()}>
<MobileSocialsOverflowIcon onClick={toggleCollectionSocials}>
{collectionSocialsIsOpen ? (
<XMarkIcon width="28" height="28" fill={themeVars.colors.textSecondary} />
) : (
<EllipsisIcon width="28" height="28" fill={themeVars.colors.textSecondary} />
<EllipsisIcon width="28" height="20" fill={themeVars.colors.textSecondary} />
)}
</Row>
</MobileSocialsOverflowIcon>
{collectionSocialsIsOpen && (
<Row
position="absolute"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment