Skip to content

Commit

Permalink
Fixed styling for contacts import list
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurczewski committed Oct 7, 2024
1 parent a974812 commit 936360b
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,18 @@ const ContactItem: React.FC<UnifiedContact> = ({
<StyledPhoneInfoWrapper>
{phoneNumbers.length > 0 && <p>{phoneNumbers[0].value}</p>}
{phoneNumbers.length > 1 && (
<Tooltip>
<Tooltip
offset={{
x: 0,
y: 11,
}}
>
<Tooltip.Anchor>
<MoreNumbersButton>
{`+${phoneNumbers.length - 1}`}
</MoreNumbersButton>
</Tooltip.Anchor>
<Tooltip.Content $defaultStyles>
<Tooltip.Content $defaultStyles $placement={"bottom-right"}>
{phoneNumbers.slice(1).map((number) => (
<Paragraph5 key={number.value}>{number.value}</Paragraph5>
))}
Expand All @@ -183,6 +188,11 @@ const ContactItem: React.FC<UnifiedContact> = ({
const ContactItemWrapper = styled.div`
width: 100%;
padding: 0.4rem 1.4rem;
> *,
label {
width: 100%;
}
`

const ContactLabelWrapper = styled.div`
Expand Down

0 comments on commit 936360b

Please sign in to comment.