Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(chat) Break long text in multiple lines (#12842)

Robert Pintilii921f3ee8cd10
diff --git a/react/features/chat/components/web/ChatMessage.tsx b/react/features/chat/components/web/ChatMessage.tsx
index b9f840ac4c..fc19dfabbe 100644
--- a/react/features/chat/components/web/ChatMessage.tsx
+++ b/react/features/chat/components/web/ChatMessage.tsx
@@ -93,7 +93,8 @@ const styles = (theme: Theme) => {
userMessage: {
...withPixelLineHeight(theme.typography.bodyShortRegular),
color: theme.palette.text01,
- whiteSpace: 'pre-wrap'
+ whiteSpace: 'pre-wrap',
+ wordBreak: 'break-word'
},
privateMessageNotice: {
diff --git a/react/features/chat/components/web/ChatMessageGroup.tsx b/react/features/chat/components/web/ChatMessageGroup.tsx
index c67d1da883..5abbeb9369 100644
--- a/react/features/chat/components/web/ChatMessageGroup.tsx
+++ b/react/features/chat/components/web/ChatMessageGroup.tsx
@@ -26,7 +26,8 @@ const useStyles = makeStyles()(theme => {
return {
messageGroup: {
display: 'flex',
- flexDirection: 'column'
+ flexDirection: 'column',
+ maxWidth: '100%'
},
groupContainer: {