From 30a0c7a84adbed9dabdcd2afe614ef434a2095a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Tue, 1 Aug 2023 09:09:34 +0000 Subject: [PATCH] [FIX] mail: vertically align subtype description and tracking value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up of [1] Before this commit, when a message had both subtype description and tracking values, they were displayed horizontally instead of vertically. This happens because [1] set `d-flex` on `textContent`, which is horizontal by default. This assumes there's only 1 HTML node for actual `textContent` so that message action list could be positioned next to 1st text content line. However, when message has subtype description and tracking values, there is more than 1 HTML node in `textContent` and the intended visual is showing them in `d-block`. This `d-flex` made them display horizontally instead of `d-block`. This commit fixes the issue by having a single actual HTML node in `textContent` when there's a subtype description and some tracking values. This allows to position `textContent` parts as desired (e.g. with `d-block`) while having position of message action list working as intended in original template of `Message`. [1] https://github.com/odoo/odoo/pull/128940 closes odoo/odoo#130435 X-original-commit: 469f46c602c842c7a7fae49e0af701e979ff18ba Signed-off-by: Louis Wicket (wil) Signed-off-by: Alexandre Kühn (aku) --- .../static/src/core/web/message_patch.xml | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/addons/mail/static/src/core/web/message_patch.xml b/addons/mail/static/src/core/web/message_patch.xml index 7140e9ce6ab..d0482d34c69 100644 --- a/addons/mail/static/src/core/web/message_patch.xml +++ b/addons/mail/static/src/core/web/message_patch.xml @@ -3,25 +3,27 @@ - -

- -

-
- -
    - -
  • - - - - () -
  • -
    -
-
-
- +
+ +

+ +

+
+ +
    + +
  • + + + + () +
  • +
    +
+
+
+ +