message: Keep user card tooltip limited to user name and avatar.

We accidentally added tooltip to open user card to a much larger
area than intended as a regression from moving the message to
use grid.

In this, we keep it limited to user name and avatar by adding
the tooltip directly to them.
This commit is contained in:
Aman Agrawal 2023-01-20 10:47:07 +00:00 committed by Tim Abbott
parent b21f533af3
commit 00752f8059
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<span class="message_sender no-select is_me_message">
<span class="sender_info_hover">
<span title="{{t 'View user card' }} (u)">
<span>
{{> message_avatar}}
</span>
</span>

View File

@ -1,4 +1,4 @@
<div class="u-{{msg/sender_id}} inline_profile_picture {{#sender_is_guest}} guest-avatar{{/sender_is_guest}}" aria-hidden="true">
<div class="u-{{msg/sender_id}} inline_profile_picture {{#sender_is_guest}} guest-avatar{{/sender_is_guest}}" aria-hidden="true" title="{{t 'View user card' }} (u)">
<img src="{{small_avatar_url}}" alt="" class="no-drag"/>
</div>
{{~! remove whitespace ~}}

View File

@ -1,9 +1,9 @@
{{#unless status_message}}
<span class="message_sender sender_info_hover no-select">
{{#if include_sender}}
<span title="{{t 'View user card' }} (u)">
<span>
{{> message_avatar ~}}
<span class="sender_name auto-select" role="button" tabindex="0">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>
<span class="sender_name auto-select" role="button" tabindex="0" title="{{t 'View user card' }} (u)">{{msg/sender_full_name}}{{> status_emoji msg/status_emoji_info}}</span>
{{#if sender_is_bot}}
<i class="zulip-icon zulip-icon-bot" aria-label="{{t 'Bot' }}"></i>
{{/if}}