Fix: Break word when text widget content is long (#6211)

fixes #5319
This commit is contained in:
balajisoundar 2021-08-30 18:54:58 +05:30 committed by GitHub
parent 104fd168de
commit 681f2a11f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ export const StyledText = styled(Text)<{
font-weight: ${(props) =>
props?.fontStyle?.includes(FontStyleTypes.BOLD) ? "bold" : "normal"};
font-size: ${(props) => props?.fontSize && TEXT_SIZES[props?.fontSize]};
word-break: break-word;
span {
width: 100%;
line-height: 1.2;