Просмотр исходного кода

fix(chat): re-fix letting long messages wrap

master
Leonard Kim 6 лет назад
Родитель
Сommit
5a53d7f32a
2 измененных файлов: 5 добавлений и 1 удалений
  1. 4
    0
      css/_chat.scss
  2. 1
    1
      react/features/chat/components/web/ChatMessage.js

+ 4
- 0
css/_chat.scss Просмотреть файл

@@ -312,6 +312,10 @@
312 312
         }
313 313
     }
314 314
 
315
+    .chatmessage-wrapper {
316
+        max-width: 100%;
317
+    }
318
+
315 319
     .chatmessage {
316 320
         background-color: $chatRemoteMessageBackgroundColor;
317 321
         border-radius: 0px 6px 6px 6px;

+ 1
- 1
react/features/chat/components/web/ChatMessage.js Просмотреть файл

@@ -56,7 +56,7 @@ class ChatMessage extends AbstractChatMessage<Props> {
56 56
         });
57 57
 
58 58
         return (
59
-            <div>
59
+            <div className = 'chatmessage-wrapper'>
60 60
                 <div className = 'chatmessage'>
61 61
                     { this.props.showDisplayName && this._renderDisplayName() }
62 62
                     <div className = 'usermessage'>

Загрузка…
Отмена
Сохранить