[FIX] mail: chatter attachments overflow
Before this PR, posting a message containing an attachment with a long name in the chatter would result in the chatter overflowing the main window. This is due to the fact that flex items cannot be smaller than their content. This PR fixes the issue by adding the `overflow-auto` class to the chatter container in order to override the default `min-width: auto` of flex items thus allowing them to be smaller. closes odoo/odoo#106927 X-original-commit: 73fb78e75b6126586385ea7621b6d71fae715305 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="mail.ChatterContainer" owl="1">
|
||||
<div class="o_ChatterContainer flex-grow-1 d-flex" t-att-class="{ 'o-isInFormSheetBg mx-auto': props.isInFormSheetBg }" t-attf-class="{{ props.className }}" data-command-category="mail" t-ref="root">
|
||||
<div class="o_ChatterContainer flex-grow-1 d-flex overflow-auto" t-att-class="{ 'o-isInFormSheetBg mx-auto': props.isInFormSheetBg }" t-attf-class="{{ props.className }}" data-command-category="mail" t-ref="root">
|
||||
<t t-if="isLoaded and chatter and chatter.thread">
|
||||
<Chatter record="chatter"/>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user