diff --git a/addons/mail/static/src/components/message/message.scss b/addons/mail/static/src/components/message/message.scss index 7b12055b440..49f2ff13165 100644 --- a/addons/mail/static/src/components/message/message.scss +++ b/addons/mail/static/src/components/message/message.scss @@ -50,10 +50,10 @@ // ------------------------------------------------------------------ .o_Message { - transition: background-color .5s ease-out; + transition: background-color .2s ease-out, opacity .5s ease-out, box-shadow .5s ease-out, transform .2s ease-out; - &.o-not-discussion.o-selected { - border-bottom: 1px solid darken(map-get($grays, '400'), 5%); + &.o-isReplyHighlighted { + transform: translateY(-#{map-get($spacers, 3)}); } } diff --git a/addons/mail/static/src/components/message/message.xml b/addons/mail/static/src/components/message/message.xml index c2d312523ce..4beb8b726e7 100644 --- a/addons/mail/static/src/components/message/message.xml +++ b/addons/mail/static/src/components/message/message.xml @@ -10,6 +10,7 @@ 'o-discussion': messageView.message.isDiscussionOrNotification, 'o-has-message-selection': messageView.messageListViewMessageViewItemOwner and messageView.messageListViewMessageViewItemOwner.messageListViewOwner.threadViewOwner.replyingToMessageView, 'o-highlighted': messageView.message.isHighlighted or messageView.isHighlighted, + 'o-isReplyHighlighted bg-white shadow-lg': messageView.isHighlighted, 'o-isDeviceSmall': messaging.device.isSmall, 'o-not-discussion': !messageView.message.isDiscussionOrNotification, 'o-notification': messageView.message.message_type === 'notification', @@ -25,9 +26,8 @@ }" t-attf-class="{{ messageView.extraClass }} {{ className }}" role="group" t-att-aria-label="messageView.message.messageTypeText" t-on-click="messageView.onClick" t-on-mouseenter="messageView.onMouseenter" t-on-mouseleave="messageView.onMouseleave" t-att-data-id="messageView.message.id" t-att-data-message-local-id="messageView.message.localId" t-ref="root" > - -
- +
+
diff --git a/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.scss b/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.scss index 5bca610e2af..88703970d00 100644 --- a/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.scss +++ b/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.scss @@ -1,17 +1,27 @@ -.o_MessageInReplyToView { - padding-left: $o-mail-message-sidebar-width; +.o_MessageInReplyToView_corner { + &.o-isLeftAlign { + left: $o-mail-message-sidebar-width / 2; + border-radius: $o-mail-rounded-rectangle-border-radius-sm 0 0 0; + } + + &.o-isRightAlign { + right: $o-mail-message-sidebar-width / 2; + border-radius: 0 $o-mail-rounded-rectangle-border-radius-sm 0 0; + } } -.o_MessageInReplyToView_corner { - left: $o-mail-message-sidebar-width / 2; - border-left: $border-width solid currentColor; - border-top: $border-width solid currentColor; - border-radius: $o-mail-rounded-rectangle-border-radius-sm 0 0 0; +.o_MessageInReplyToView_avatar { + width: $o-mail-thread-avatar-size / 2; + height: $o-mail-thread-avatar-size / 2; +} + +.o_MessageInReplyToView_wrapInner { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; } .o_MessageInReplyToView_body { - @include o-hover-text-color($o-main-color-muted, inherit); - // Make the body single line when possible p, div { display: inline; diff --git a/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.xml b/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.xml index 613efb843be..be9c4bcc333 100644 --- a/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.xml +++ b/addons/mail/static/src/components/message_in_reply_to_view/message_in_reply_to_view.xml @@ -2,18 +2,23 @@ - - + + - @ - - - - - - Click to see the attachments - - + + Avatar + + @ + + + + + + Click to see the attachments + + + +