From 5b78651fe42af991673cf9ecab1982004cf12096 Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Thu, 14 Nov 2019 18:12:44 +0100 Subject: [PATCH] fix(Text): Show ellipsis if text is overflowing at default width (#225) --- packages/main/src/components/Text/Text.jss.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/main/src/components/Text/Text.jss.ts b/packages/main/src/components/Text/Text.jss.ts index 179153e3dfe..36fbc42f71c 100644 --- a/packages/main/src/components/Text/Text.jss.ts +++ b/packages/main/src/components/Text/Text.jss.ts @@ -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'