[FIX] mail: email/sms error icon overlap
Before this commit: -While reading chatter notifications in the chat window, SMS and email icons are not accessible to click due to action list overlap. -While reading a reply on any message or attachment in chat widow, the attachment link is not accessible to click due to action list overlap. After this commit: -When SMS and email icons are visible, time and that icon will display to the following line so user can click on it easily. -Attachment links will display to the following line of mentioned so user can click on it easily. Task-2713371 closes odoo/odoo#137734 X-original-commit: 3ae87df6e39cb8ef279ef62f194edf14858d2edf Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
committed by
Alexandre Kühn
parent
6504de0f94
commit
fed6bb12c1
@@ -35,6 +35,7 @@
|
||||
<span t-if="(message.author or message.email_from) and shouldDisplayAuthorName" class="o-mail-Message-author">
|
||||
<strong class="me-1 text-truncate"><t t-if="message.author" t-esc="message.author.name"/><t t-else="" t-esc="message.email_from"/></strong>
|
||||
</span>
|
||||
<t t-if="!isAlignedRight" t-call="mail.Message.notification"/>
|
||||
<small t-if="!message.isTransient" class="o-mail-Message-date text-muted opacity-50" t-att-class="{ 'me-2': !isAlignedRight }" t-att-title="message.datetimeShort">
|
||||
<t t-if="shouldDisplayAuthorName">- </t>
|
||||
<RelativeTime datetime="message.datetime"/>
|
||||
@@ -57,11 +58,7 @@
|
||||
<i class="fa fa-calendar-o"/>
|
||||
</span>
|
||||
</div>
|
||||
<div t-if="message.originThread?.eq(props.thread) and message.notifications.length > 0" t-att-class="{ 'ms-2': !isAlignedRight }">
|
||||
<span class="o-mail-Message-notification cursor-pointer" t-att-class="message.failureNotifications.length > 0 ? 'text-danger' : text-600" role="button" tabindex="0" t-on-click="onClickNotification">
|
||||
<i t-att-class="message.notifications[0].icon" role="img" aria-label="Delivery failure"/> <span t-if="message.notifications[0].label" t-out="message.notifications[0].label"/>
|
||||
</span>
|
||||
</div>
|
||||
<t t-if="isAlignedRight" t-call="mail.Message.notification"/>
|
||||
</div>
|
||||
<div
|
||||
class="position-relative d-flex"
|
||||
@@ -161,4 +158,12 @@
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="mail.Message.notification">
|
||||
<div t-if="message.originThread?.eq(props.thread) and message.notifications.length > 0" class="mx-1">
|
||||
<span class="o-mail-Message-notification cursor-pointer" t-att-class="message.failureNotifications.length > 0 ? 'text-danger' : text-600" role="button" tabindex="0" t-on-click="onClickNotification">
|
||||
<i t-att-class="message.notifications[0].icon" role="img" aria-label="Delivery failure"/> <span t-if="message.notifications[0].label" t-out="message.notifications[0].label"/>
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<img class="o-mail-MessageInReply-avatar me-2 rounded" t-att-src="authorAvatarUrl" t-att-title="message.parentMessage.author?.name ?? message.parentMessage.email_from" alt="Avatar"/>
|
||||
<span class="o-mail-MessageInReply-content overflow-hidden">
|
||||
<b>@<t t-out="message.parentMessage.author?.name ?? message.parentMessage.email_from"/></b>:
|
||||
<br t-if="env.inChatWindow and !props.alignedRight"/>
|
||||
<span class="o-mail-MessageInReply-message ms-1 text-break">
|
||||
<t t-if="!message.parentMessage.isBodyEmpty">
|
||||
<t t-out="message.parentMessage.body"/>
|
||||
|
||||
Reference in New Issue
Block a user