Files
zulip/web/templates/message_avatar.hbs
Aman Agrawal a8c513a95e user_card: Fix mismatch between tooltip and popover trigger area.
User card popover was not displayed even when "View user card"
tooltip is visible in some areas. To fix it, we introduce a
wrapper element which has the same trigger area as the tooltip.

We don't directly use the `view_user_card_tooltip` element to
trigger popover since tippy doesn't play nice with two tippy
instances attached to the same element.
2025-04-08 09:56:16 -07:00

12 lines
609 B
Handlebars

<div class="u-{{msg/sender_id}} message-avatar sender_info_hover view_user_card_tooltip no-select" aria-hidden="true" data-is-bot="{{sender_is_bot}}">
<div class="inline-profile-picture-wrapper">
<div class="inline_profile_picture {{#if sender_is_guest}} guest-avatar{{/if}} {{#if sender_is_deactivated}} deactivated {{/if}}">
<img loading="lazy" src="{{small_avatar_url}}" alt="" class="no-drag"/>
{{#if sender_is_deactivated}}
<i class="fa fa-ban deactivated-user-icon"></i>
{{/if}}
</div>
</div>
</div>
{{~! remove whitespace ~}}