Skip to content

Commit

Permalink
feat: wrap vaccination in two lines if no space
Browse files Browse the repository at this point in the history
  • Loading branch information
thoreyjona committed Nov 12, 2024
1 parent d27d85b commit c4d9c2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/native/app/src/ui/lib/card/expandable-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const IconWrapper = styled.View`
const IconMessage = styled.View`
flex-direction: row;
justify-content: flex-start;
flex: 1;
`

const Row = styled.View`
Expand All @@ -62,6 +63,12 @@ const Row = styled.View`
align-items: center;
`

const Message = styled(Typography)`
flex: 1;
flex-shrink: 1;
margin-right: ${({ theme }) => theme.spacing[1]}px;
`

const Expanded = styled.View`
background-color: ${dynamicColor('background')};
border-bottom-left-radius: ${({ theme }) => theme.border.radius.large};
Expand Down Expand Up @@ -182,7 +189,7 @@ export const ExpandableCard = ({
/>
</IconWrapper>
)}
<Typography variant="heading5">{message}</Typography>
<Message variant="heading5">{message}</Message>
</IconMessage>
<Typography variant="heading5">{value}</Typography>
</Row>
Expand Down

0 comments on commit c4d9c2d

Please sign in to comment.