Skip to content

Commit

Permalink
feat: enable multi-line choice
Browse files Browse the repository at this point in the history
  • Loading branch information
JeukHwang committed Oct 25, 2023
1 parent 2020563 commit 90d0d1c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/web/src/components/molecules/Choice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Container = styled.div<{
border: 1px solid ${props => props.theme.colors.gray200};
padding: 6px 12px 6px 12px;
width: 340px;
height: 30px;
height: fit-content;
gap: 10px;
display: flex;
flex-direction: row;
Expand All @@ -35,7 +35,14 @@ interface ChoiceTextProps extends PropsWithChildren {
}

const ChoiceText: React.FC<ChoiceTextProps> = ({ color, children = null }) => (
<Text variant="body" color={color}>
<Text
variant="body"
color={color}
style={{
wordBreak: "break-all",
overflowWrap: "break-word",
}}
>
{children}
</Text>
);
Expand Down

0 comments on commit 90d0d1c

Please sign in to comment.