fix long poll not wrapping

This commit is contained in:
KDSBrowne 2020-01-23 16:40:02 +00:00
parent a5e7d638b0
commit a233509587
2 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class MessageListItem extends Component {
polls.forEach((poll) => {
pollText = poll.text.split('<br/>');
pollElement.push(pollText.map(o => <div key={_.uniqueId('chat-poll-result-')}>{o}</div>));
pollElement.push(pollText.map(o => <div key={_.uniqueId('chat-poll-result-')} className={styles.pollLine}>{o}</div>));
if (polls.length > 1) {
pollElement.push(

View File

@ -165,3 +165,7 @@
.isPoll {
bottom: var(--border-size-large);
}
.pollLine {
overflow-wrap: break-word;
}