Skip to content

Commit 5b78651

Browse files
Lukas742MarcusNotheis
authored andcommitted
fix(Text): Show ellipsis if text is overflowing at default width (#225)
1 parent 8b11841 commit 5b78651

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/main/src/components/Text/Text.jss.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export const TextStyles = ({ parameters }: JSSTheme) => ({
1010
display: 'inline-block',
1111
boxSizing: 'border-box',
1212
whiteSpace: 'pre-line',
13-
wordWrap: 'break-word'
13+
wordWrap: 'break-word',
14+
maxWidth: '100%'
1415
},
1516
renderWhitespace: {
1617
whiteSpace: 'pre-wrap'

0 commit comments

Comments
 (0)