From 6fe11731073ee5bc2968c844d7266c9d500585c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 14 Jul 2021 10:11:45 +0000 Subject: [PATCH] [IMP] mail: prevent partner name from overflowing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of them were completely missing (eg. author name on message, followers menu), others were only partially done (eg. missing no wrap). Adapt all of them to guideline with class. closes odoo/odoo#73660 Signed-off-by: Alexandre Kühn (aku) --- .../src/components/attachment/attachment.scss | 6 ------ .../src/components/attachment/attachment.xml | 4 ++-- .../attachment_viewer/attachment_viewer.scss | 6 ------ .../attachment_viewer/attachment_viewer.xml | 2 +- .../chat_window_header/chat_window_header.scss | 3 --- .../chat_window_header/chat_window_header.xml | 2 +- .../chat_window_hidden_menu.scss | 2 -- .../chat_window_hidden_menu.xml | 2 +- .../static/src/components/composer/composer.scss | 2 -- .../static/src/components/composer/composer.xml | 2 +- .../composer_suggestion/composer_suggestion.scss | 4 ---- .../composer_suggestion/composer_suggestion.xml | 14 +++++++------- .../composer_text_input/composer_text_input.scss | 4 +--- .../static/src/components/follower/follower.scss | 1 + .../static/src/components/follower/follower.xml | 4 ++-- .../follower_list_menu/follower_list_menu.scss | 7 ++++++- .../mail/static/src/components/message/message.xml | 6 +++--- .../notification_group/notification_group.xml | 4 ++-- .../notification_list/notification_list_item.scss | 8 -------- .../notification_request/notification_request.xml | 4 ++-- .../thread_needaction_preview.xml | 4 ++-- .../components/thread_preview/thread_preview.xml | 4 ++-- .../thread_textual_typing_status.xml | 2 +- 23 files changed, 35 insertions(+), 62 deletions(-) diff --git a/addons/mail/static/src/components/attachment/attachment.scss b/addons/mail/static/src/components/attachment/attachment.scss index fdb59dcf474..a150a484898 100644 --- a/addons/mail/static/src/components/attachment/attachment.scss +++ b/addons/mail/static/src/components/attachment/attachment.scss @@ -59,12 +59,6 @@ padding-right : map-get($spacers, 1); } -.o_Attachment_filename { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - .o_Attachment_image { flex-shrink: 0; margin: map-get($spacers, 1); diff --git a/addons/mail/static/src/components/attachment/attachment.xml b/addons/mail/static/src/components/attachment/attachment.xml index af543ce44a5..97ad38b3fce 100644 --- a/addons/mail/static/src/components/attachment/attachment.xml +++ b/addons/mail/static/src/components/attachment/attachment.xml @@ -27,7 +27,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.scss b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.scss index ea4b02a5c9f..a6c091fab2f 100644 --- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.scss +++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.scss @@ -88,12 +88,6 @@ min-width: 0; } -.o_AttachmentViewer_nameText { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - .o_AttachmentViewer_toolbar { position: absolute; bottom: 45px; diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml index e3c5ef1f312..5e239fe0523 100644 --- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml +++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.xml @@ -21,7 +21,7 @@
- +
diff --git a/addons/mail/static/src/components/chat_window_header/chat_window_header.scss b/addons/mail/static/src/components/chat_window_header/chat_window_header.scss index 6ca4c8b2f42..a7b591f2b0d 100644 --- a/addons/mail/static/src/components/chat_window_header/chat_window_header.scss +++ b/addons/mail/static/src/components/chat_window_header/chat_window_header.scss @@ -49,9 +49,6 @@ .o_ChatWindowHeader_name { max-height: map-get($sizes, 100); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } .o_ChatWindowHeader_rightArea { diff --git a/addons/mail/static/src/components/chat_window_header/chat_window_header.xml b/addons/mail/static/src/components/chat_window_header/chat_window_header.xml index c07a2f41208..e4fa3dcf750 100644 --- a/addons/mail/static/src/components/chat_window_header/chat_window_header.xml +++ b/addons/mail/static/src/components/chat_window_header/chat_window_header.xml @@ -15,7 +15,7 @@ threadLocalId="chatWindow.thread.localId" /> -
+
diff --git a/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.scss b/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.scss index 5125e0da015..1409623bf03 100644 --- a/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.scss +++ b/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.scss @@ -49,8 +49,6 @@ } .o_ChatWindowHiddenMenu_windowCounter { - overflow: hidden; - text-overflow: ellipsis; margin-left: map-get($spacers, 1); } diff --git a/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.xml b/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.xml index 943fc71d09d..ef915288a19 100644 --- a/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.xml +++ b/addons/mail/static/src/components/chat_window_hidden_menu/chat_window_hidden_menu.xml @@ -5,7 +5,7 @@