Skip to content

Commit

Permalink
fix(Text): Show ellipsis if text is overflowing at default width (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 authored and MarcusNotheis committed Nov 14, 2019
1 parent 8b11841 commit 5b78651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/main/src/components/Text/Text.jss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const TextStyles = ({ parameters }: JSSTheme) => ({
display: 'inline-block',
boxSizing: 'border-box',
whiteSpace: 'pre-line',
wordWrap: 'break-word'
wordWrap: 'break-word',
maxWidth: '100%'
},
renderWhitespace: {
whiteSpace: 'pre-wrap'
Expand Down

0 comments on commit 5b78651

Please sign in to comment.