[FIX] mail: rounded (not circle) avatar in activity and msg reaction

Before this commit, avatars in activity menu and in message reaction
menu were rounded circle, instead of rounded square.

All avatars were rounded-circle before MILK redesign in 16.3.
Since MILK in 16.3, almost all of avatars should be shown in a rounded
square. These 2 occurrences were using the old design of avatars.

closes odoo/odoo#127285

X-original-commit: ea83eb15b354470cbc104b4e0325280d5e349657
Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Alexandre Kühn
2023-07-04 20:33:45 +02:00
parent 25f0341a2d
commit 4376cf80b9
2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@
</div>
<div class="d-flex overflow-auto flex-column flex-grow-1 bg-view p-2 h-100">
<div t-foreach="state.reaction.personas" t-as="persona" t-key="persona.id" class="o-mail-MessageReactionMenu-persona d-flex p-1 align-items-center" t-att-class="{ 'o-isDeviceSmall': ui.isSmall }">
<img class="rounded-circle o_object_fit_cover o-mail-MessageReactionMenu-avatar" t-att-src="threadService.avatarUrl(persona, props.message.originThread)"/>
<img class="rounded o_object_fit_cover o-mail-MessageReactionMenu-avatar" t-att-src="threadService.avatarUrl(persona, props.message.originThread)"/>
<span class="d-flex flex-grow-1 align-items-center">
<span class="mx-2 text-truncate fs-6" t-esc="persona.name"/>
<div class="flex-grow-1"/>
@@ -27,7 +27,7 @@
</t>
</div>
<div class="d-flex align-items-center flex-wrap mx-3">
<img t-if="props.activity.user_id[0]" class="me-2 rounded-circle" t-att-src="activityAssigneeAvatar" style="max-width: 1.5rem; max-height: 1.5rem;"/>
<img t-if="props.activity.user_id[0]" class="me-2 rounded" t-att-src="activityAssigneeAvatar" style="max-width: 1.5rem; max-height: 1.5rem;"/>
<div class="mt-1">
<t t-if="props.activity.user_id[0]">
<small class="text-truncate" t-esc="props.activity.user_id[1]"/>