Browse Source

fix(chat) Make the name fit the chat bubble

factor2
robertpin 2 years ago
parent
commit
e56c7070c2
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      react/features/chat/components/web/ChatMessage.tsx

+ 3
- 2
react/features/chat/components/web/ChatMessage.tsx View File

23
 const styles = (theme: Theme) => {
23
 const styles = (theme: Theme) => {
24
     return {
24
     return {
25
         chatMessageWrapper: {
25
         chatMessageWrapper: {
26
-            maxWidth: '100%'
26
+            maxWidth: 'calc(100% - 40px)' // 100% - avatar and margin
27
         },
27
         },
28
 
28
 
29
         chatMessage: {
29
         chatMessage: {
62
         replyWrapper: {
62
         replyWrapper: {
63
             display: 'flex',
63
             display: 'flex',
64
             flexDirection: 'row' as const,
64
             flexDirection: 'row' as const,
65
-            alignItems: 'center'
65
+            alignItems: 'center',
66
+            maxWidth: '100%'
66
         },
67
         },
67
 
68
 
68
         messageContent: {
69
         messageContent: {

Loading…
Cancel
Save