Browse Source

fix(chat): ensure really long words can trigger wrapping

master
Leonard Kim 6 years ago
parent
commit
a114d55fac
2 changed files with 8 additions and 7 deletions
  1. 3
    1
      css/_chat.scss
  2. 5
    6
      react/features/chat/components/web/ChatMessageGroup.js

+ 3
- 1
css/_chat.scss View File

@@ -173,8 +173,10 @@
173 173
 .chatmessage {
174 174
     background-color: $chatRemoteMessageBackgroundColor;
175 175
     border-radius: 0px 6px 6px 6px;
176
-    margin-top: 3px;
176
+    box-sizing: border-box;
177 177
     color: white;
178
+    margin-top: 3px;
179
+    max-width: 100%;
178 180
     padding-bottom: 3px;
179 181
     position: relative;
180 182
 

+ 5
- 6
react/features/chat/components/web/ChatMessageGroup.js View File

@@ -49,12 +49,11 @@ class ChatMessageGroup extends Component<Props> {
49 49
             <div className = { `chat-message-group ${className}` }>
50 50
                 {
51 51
                     messages.map((message, i) => (
52
-                        <div key = { i }>
53
-                            <ChatMessage
54
-                                key = { i }
55
-                                message = { message }
56
-                                showDisplayName = { i === 0 } />
57
-                        </div>))
52
+                        <ChatMessage
53
+                            key = { i }
54
+                            message = { message }
55
+                            showDisplayName = { i === 0 } />
56
+                    ))
58 57
                 }
59 58
                 <div className = 'chat-message-group-footer'>
60 59
                     { getLocalizedDateFormatter(

Loading…
Cancel
Save