From d2f1e9eb2ac8b519dad8aec4db4f25477d9484de Mon Sep 17 00:00:00 2001 From: katspaugh Date: Wed, 21 Apr 2021 16:05:47 +0200 Subject: [PATCH] Fix long text breaking the snackbar (#2171) * Fix long text breaking the snackbar * 80px -> 160px * Add a scroll bar in the snackbar Co-authored-by: Fernando Co-authored-by: Daniel Sanchez --- src/theme/mui.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/theme/mui.ts b/src/theme/mui.ts index 4d793d54..30ba12d6 100644 --- a/src/theme/mui.ts +++ b/src/theme/mui.ts @@ -279,6 +279,11 @@ const theme = createMuiTheme({ '& > span': { display: 'flex', flexDirection: 'row', + alignItems: 'stretch', + overflowX: 'hidden', + overflowY: 'auto', + maxHeight: '160px', + wordBreak: 'break-word', '& > img': { display: 'block', marginRight: '13px',