Преглед изворни кода

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

master
Leonard Kim пре 6 година
родитељ
комит
a114d55fac
2 измењених фајлова са 8 додато и 7 уклоњено
  1. 3
    1
      css/_chat.scss
  2. 5
    6
      react/features/chat/components/web/ChatMessageGroup.js

+ 3
- 1
css/_chat.scss Прегледај датотеку

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

+ 5
- 6
react/features/chat/components/web/ChatMessageGroup.js Прегледај датотеку

49
             <div className = { `chat-message-group ${className}` }>
49
             <div className = { `chat-message-group ${className}` }>
50
                 {
50
                 {
51
                     messages.map((message, i) => (
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
                 <div className = 'chat-message-group-footer'>
58
                 <div className = 'chat-message-group-footer'>
60
                     { getLocalizedDateFormatter(
59
                     { getLocalizedDateFormatter(

Loading…
Откажи
Сачувај