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

This commit is contained in:
Leonard Kim 2019-05-09 07:50:36 -07:00 committed by virtuacoplenny
parent afde717ca4
commit a114d55fac
2 changed files with 8 additions and 7 deletions

View File

@ -173,8 +173,10 @@
.chatmessage {
background-color: $chatRemoteMessageBackgroundColor;
border-radius: 0px 6px 6px 6px;
margin-top: 3px;
box-sizing: border-box;
color: white;
margin-top: 3px;
max-width: 100%;
padding-bottom: 3px;
position: relative;

View File

@ -49,12 +49,11 @@ class ChatMessageGroup extends Component<Props> {
<div className = { `chat-message-group ${className}` }>
{
messages.map((message, i) => (
<div key = { i }>
<ChatMessage
key = { i }
message = { message }
showDisplayName = { i === 0 } />
</div>))
<ChatMessage
key = { i }
message = { message }
showDisplayName = { i === 0 } />
))
}
<div className = 'chat-message-group-footer'>
{ getLocalizedDateFormatter(