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;
|
if (!account) return null;
|
||||||
|
|
||||||
return (
|
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} />
|
<Avatar account={account} size={28} />
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
|
@ -14,10 +14,12 @@ export const NamesList: React.FC<{ accountIds: string[]; total: number }> = ({
|
||||||
if (!account) return null;
|
if (!account) return null;
|
||||||
|
|
||||||
const displayedName = (
|
const displayedName = (
|
||||||
<Link to={`/@${account.get('acct')}`} title={`@${account.get('acct')}`}>
|
<Link
|
||||||
<bdi
|
to={`/@${account.acct}`}
|
||||||
dangerouslySetInnerHTML={{ __html: account.get('display_name_html') }}
|
title={`@${account.acct}`}
|
||||||
/>
|
data-hover-card-account={account.id}
|
||||||
|
>
|
||||||
|
<bdi dangerouslySetInnerHTML={{ __html: account.display_name_html }} />
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue