[FIX] mail: notif manager positions date + check

By default in the notification manager we see something like:

```
record name     {a second ago}
summary                      V
```

but if for example the record name is long or the summary empty, we can
have something like:

```
record name so very long {a s}
V
---
record name so very very lo...
                             V
```

This is because the record name was not allowed to grow, and the
positionning of the check mark based itself on the existence of the
summary container (.o_last_message_preview).

With this change the date a message was sent is shown in any case and
the check mark is on the right.

opw-1911654
closes #28960
This commit is contained in:
Nicolas Lempereur
2018-11-22 14:45:33 +00:00
parent 9d72263717
commit 1c4d49330e
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -329,7 +329,7 @@
.o_preview_title {
display: flex;
.o_preview_name {
flex: 0 0 auto;
flex: 0 1 auto;
@include o-text-overflow;
}
.o_mail_activity_action_buttons {
+9 -7
View File
@@ -287,14 +287,16 @@
</span>
<span class="o_last_message_date"> <t t-esc="preview.date ? preview.date.fromNow() : ''"/> </span>
</div>
<div t-if="preview.body" class="o_last_message_preview">
<t t-if="preview.isMyselfAuthor">
<span class="fa fa-mail-reply" role="img" aria-label="Reply"/> You:
<div class="o_last_message_preview">
<t t-if="preview.body">
<t t-if="preview.isMyselfAuthor">
<span class="fa fa-mail-reply" role="img" aria-label="Reply"/> You:
</t>
<t t-elif="preview.author">
<t t-esc="preview.author"/>:
</t>
<t t-raw="preview.body"/>
</t>
<t t-elif="preview.author">
<t t-esc="preview.author"/>:
</t>
<t t-raw="preview.body"/>
</div>
<span title="Mark as Read" class="o_discuss_icon o_mail_preview_mark_as_read fa fa-check" t-if="preview.unreadCounter"/>
</div>