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) Fix horizontal scroll (#13308)

Robert Pintiliidff41e0fcbf2
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: {