Skip to content

Commit

Permalink
import: fix status wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Oct 31, 2023
1 parent 399dd71 commit 0ccc0f6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const CheckboxCircleIcon = styled(CheckboxCircle)`
color: ${({ theme }) => theme.color.green};
`

const StyledBox = styled(Box)`
gap: 0.5rem;
white-space: nowrap;
`

const mapStatusToLabel = (
file: ProcessedFile,
):
Expand Down Expand Up @@ -70,9 +75,9 @@ export const FileStatus = ({ file }: { file: ProcessedFile }) => {
return mappedStatus ? (
<Box gap="1rem" align="flex-start" flexDirection="column">
<Badge type={mappedStatus.type}>
<Box gap="0.5rem">
<StyledBox>
{mappedStatus.icon} {mappedStatus.label}
</Box>
</StyledBox>
</Badge>
</Box>
) : (
Expand Down

0 comments on commit 0ccc0f6

Please sign in to comment.