From a27bd6ff3632f3d6d1371852b53b8a522be0d489 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Wed, 11 May 2022 06:30:41 +0000 Subject: [PATCH] [REF] mail: `ThreadView`, review and simplify scss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of the overall v16 SCSS optimization/restyle, task-2704984 task-2849973 closes odoo/odoo#91024 Signed-off-by: Alexandre Kühn (aku) --- .../components/thread_view/thread_view.scss | 38 ------------------- .../components/thread_view/thread_view.xml | 12 +++--- 2 files changed, 6 insertions(+), 44 deletions(-) diff --git a/addons/mail/static/src/components/thread_view/thread_view.scss b/addons/mail/static/src/components/thread_view/thread_view.scss index e5f732a5252..bac6e4d204e 100644 --- a/addons/mail/static/src/components/thread_view/thread_view.scss +++ b/addons/mail/static/src/components/thread_view/thread_view.scss @@ -3,9 +3,6 @@ // ------------------------------------------------------------------ .o_ThreadView { - display: flex; - position: relative; - flex-flow: column; min-height: 0; } @@ -17,41 +14,6 @@ width: $o-mail-chat-sidebar-width; } -.o_ThreadView_composer { - flex: 0 0 auto; -} - .o_ThreadView_core { min-width: 0; } - -.o_ThreadView_loading { - display: flex; - align-self: center; - flex: 1 1 auto; - align-items: center; -} - -.o_ThreadView_loadingFailed { - display: flex; - flex: 1 1 auto; - align-items: center; - justify-content: center; - flex-direction: column; -} - -.o_ThreadView_messageList { - flex: 1 1 auto; -} - -// ------------------------------------------------------------------ -// Style -// ------------------------------------------------------------------ - -.o_ThreadView { - background-color: gray('100'); -} - -.o_ThreadView_loadingIcon { - margin-right: map-get($spacers, 1); -} diff --git a/addons/mail/static/src/components/thread_view/thread_view.xml b/addons/mail/static/src/components/thread_view/thread_view.xml index a74b07b90d1..7e745173932 100644 --- a/addons/mail/static/src/components/thread_view/thread_view.xml +++ b/addons/mail/static/src/components/thread_view/thread_view.xml @@ -3,7 +3,7 @@ -
+
@@ -13,18 +13,18 @@ -
- Loading... +
+ Loading...
-
+
An error occurred while fetching messages.
@@ -38,7 +38,7 @@