mirror of https://github.com/mastodon/mastodon.git
Add hover cards to grouped notifications
parent
d7cec45524
commit
5cdec0eef7
|
@ -10,7 +10,11 @@ const AvatarWrapper: React.FC<{ accountId: string }> = ({ accountId }) => {
|
|||
if (!account) return null;
|
||||
|
||||
return (
|
||||
<Link to={`/@${account.acct}`} title={`@${account.acct}`}>
|
||||
<Link
|
||||
to={`/@${account.acct}`}
|
||||
title={`@${account.acct}`}
|
||||
data-hover-card-account={account.id}
|
||||
>
|
||||
<Avatar account={account} size={28} />
|
||||
</Link>
|
||||
);
|
||||
|
|
|
@ -14,10 +14,12 @@ export const NamesList: React.FC<{ accountIds: string[]; total: number }> = ({
|
|||
if (!account) return null;
|
||||
|
||||
const displayedName = (
|
||||
<Link to={`/@${account.get('acct')}`} title={`@${account.get('acct')}`}>
|
||||
<bdi
|
||||
dangerouslySetInnerHTML={{ __html: account.get('display_name_html') }}
|
||||
/>
|
||||
<Link
|
||||
to={`/@${account.acct}`}
|
||||
title={`@${account.acct}`}
|
||||
data-hover-card-account={account.id}
|
||||
>
|
||||
<bdi dangerouslySetInnerHTML={{ __html: account.display_name_html }} />
|
||||
</Link>
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue