diff --git a/react/features/chat/components/web/ChatMessage.tsx b/react/features/chat/components/web/ChatMessage.tsx index fcf73199c2..a5ad49fe09 100644 --- a/react/features/chat/components/web/ChatMessage.tsx +++ b/react/features/chat/components/web/ChatMessage.tsx @@ -23,11 +23,7 @@ interface IProps extends AbstractProps { const styles = (theme: Theme) => { return { chatMessageWrapper: { - maxWidth: '100%', - - '&.remote': { - maxWidth: 'calc(100% - 40px)' // 100% - avatar and margin - } + maxWidth: '100%' }, chatMessage: { diff --git a/react/features/chat/components/web/ChatMessageGroup.tsx b/react/features/chat/components/web/ChatMessageGroup.tsx index 1e339785a9..4c2ff05406 100644 --- a/react/features/chat/components/web/ChatMessageGroup.tsx +++ b/react/features/chat/components/web/ChatMessageGroup.tsx @@ -25,7 +25,11 @@ const useStyles = makeStyles()(theme => { messageGroup: { display: 'flex', flexDirection: 'column', - maxWidth: '100%' + maxWidth: '100%', + + '&.remote': { + maxWidth: 'calc(100% - 40px)' // 100% - avatar and margin + } }, groupContainer: {