[FIX] mail: long logged note in chatter should word break

Otherwise it makes whole chatter overflow on the right.

closes odoo/odoo#124618

X-original-commit: 61f47dfe74fa65fa55aa68c4a9676362511dc478
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2023-06-12 14:04:15 +02:00
parent 1040be1010
commit aea5e51c42
@@ -87,10 +87,10 @@
'bg-success-light border border-success opacity-25': message.isSelfAuthored and !message.isNote and !message.isHighlightedFromMention,
'bg-warning-light border border-warning opacity-50': message.isHighlightedFromMention,
}" t-attf-class="{{ isAlignedRight ? 'rounded-start-3' : 'rounded-end-3' }}"/>
<div class="position-relative" t-att-class="{
<div class="position-relative text-break" t-att-class="{
'p-1': message.isNote,
'o-mail-Message-body mb-0 py-2 px-3': !message.isNote,
'align-self-start text-break rounded-end-3 rounded-bottom-3': !state.isEditing and !message.isNote,
'align-self-start rounded-end-3 rounded-bottom-3': !state.isEditing and !message.isNote,
'o-mail-Message-editable flex-grow-1': state.isEditing,
}" t-ref="body">
<Composer t-if="state.isEditing" autofocus="true" composer="message.composer" messageComponent="constructor" onDiscardCallback.bind="exitEditMode" onPostCallback.bind="exitEditMode" mode="'compact'"/>