From 42a2a6b74a4aa4aa71c3081f26cbef4107e14d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 25 May 2023 13:10:36 +0000 Subject: [PATCH] [FIX] mail: correct responsive UI for attachment cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, attachment cards overflow in chat window when attachment name is very long. Text is properly flagged for truncate, but the container had neither `overflow-auto` or `min-width: 0` to allow flex to shrink below its content size. Also add some horizontal spacing in attachment list so the attachment cards do not have any contact with composer border. closes odoo/odoo#122583 X-original-commit: 0d0ab2543d8c6a944fb091fa4ac30a19e1924e71 Signed-off-by: Sébastien Theys (seb) Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/attachments/attachment_list.xml | 6 +++--- addons/mail/static/src/core_ui/message.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mail/static/src/attachments/attachment_list.xml b/addons/mail/static/src/attachments/attachment_list.xml index c71a8c35f22..88528ca256e 100644 --- a/addons/mail/static/src/attachments/attachment_list.xml +++ b/addons/mail/static/src/attachments/attachment_list.xml @@ -10,7 +10,7 @@ 'ms-2 ps-4': isInChatWindowAndIsAlignedRight and !env.inComposer, }" > -