Skip to content

Commit

Permalink
Make AlertBox with icon thinner without spreading out multiline alerts
Browse files Browse the repository at this point in the history
This reverts commit 3a0faf7 and re-implements
it so multiline alerts like /create-wallet on a phone are not stretched out.
  • Loading branch information
lukaw3d committed May 9, 2023
1 parent 54cb396 commit 827ae5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/components/AlertBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export function AlertBox(props: Props) {
background={{ color: mapStatus[props.status].background }}
pad={{ horizontal: 'small' }}
>
<Text weight="bold" size="12px" style={{ lineHeight: '34px' }}>
<Box direction="row" gap="small" align="center" justify={props.center ? 'center' : 'start'}>
{props.icon && <Text color={color}>{props.icon}</Text>}
<span>{props.children}</span>
</Box>
</Text>
<Box direction="row" gap="small" align="center" justify={props.center ? 'center' : 'start'}>
{props.icon && <Text color={color}>{props.icon}</Text>}
<Text weight="bold" size="12px" style={{ marginTop: 10, marginBottom: 10 }}>
{props.children}
</Text>
</Box>
</Box>
)
}

0 comments on commit 827ae5d

Please sign in to comment.