mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
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.
12 lines
609 B
Handlebars
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 ~}}
|