diff --git a/sass/_messages.scss b/sass/_messages.scss index 9b3225bb0..b139929a3 100644 --- a/sass/_messages.scss +++ b/sass/_messages.scss @@ -164,7 +164,7 @@ } converse-chat-message-body { - display: inline-block; + display: inline; } .chat-msg__message { @@ -193,7 +193,6 @@ .chat-msg__text { color: var(--message-text-color); padding: 0; - width: 100%; white-space: pre-wrap; word-wrap: break-word; word-break: break-word; diff --git a/src/components/message-body.js b/src/components/message-body.js index b875486ff..8814de0cd 100644 --- a/src/components/message-body.js +++ b/src/components/message-body.js @@ -1,15 +1,11 @@ import { CustomElement } from './element.js'; import { renderBodyText } from './../templates/directives/body'; -import { html } from 'lit-element'; class MessageBody extends CustomElement { static get properties () { return { - is_only_emojis: { type: Boolean }, - is_spoiler: { type: Boolean }, - is_spoiler_visible: { type: Boolean }, is_me_message: { type: Boolean }, model: { type: Object }, text: { type: String }, @@ -17,13 +13,8 @@ class MessageBody extends CustomElement { } render () { - const spoiler_classes = this.is_spoiler ? `spoiler ${this.is_spoiler_visible ? '' : 'collapsed'}` : ''; - return html` -