From 47be118fb1e43fafc8874b05b8ab3950efa0fb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 26 Oct 2023 15:05:52 +0200 Subject: [PATCH] [FIX] mail: message reply-to click area should match cursor feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, when a message is a reply to another message, the whole row of the message reply-to was clickable to highlight the reply-to message. This is ok when the click happens on the actual reply-to message above the message, but when the content of the reply-to message is short, the click area extends to more than the "clickable" cursor show, so that click on thread view hightlights the reply-to message when it shouldn't. The `cursor-pointer` style was already correctly shown only the the actual part of the reply-to message. But the `t-on-click` was more generous and considered the whole row in the thread view. This commit fixes the issue by matching the `t-on-click` with the intentional clickable area, matching the `cursor-pointer` that was correct. closes odoo/odoo#139906 Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/core/common/message_in_reply.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/core/common/message_in_reply.xml b/addons/mail/static/src/core/common/message_in_reply.xml index b572c1d58b7..3fa24a80c01 100644 --- a/addons/mail/static/src/core/common/message_in_reply.xml +++ b/addons/mail/static/src/core/common/message_in_reply.xml @@ -6,9 +6,9 @@ 'me-5': store.discuss.isActive or (env.inChatWindow and !props.alignedRight), 'd-flex justify-content-end ms-5': env.inChatWindow and props.alignedRight, }"> - + - + Avatar @: