Better visibility of emotes name

This change allows the name of the emote to be visible when hovering over it
This commit is contained in:
Zonian 2022-11-04 12:27:11 -05:00 committed by GitHub
parent 0072d121f5
commit 2bc0cdffcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,7 @@ export function Message({ message, thirdPartyEmotes }: { message: LogMessage, th
className="emote"
key={x}
alt={emote.code}
title={emote.code}
src={`https://static-cdn.jtvnw.net/emoticons/v2/${emote.id}/default/dark/1.0`}
/>);
x += emote.endIndex - emote.startIndex - 1;
@ -77,6 +78,7 @@ export function Message({ message, thirdPartyEmotes }: { message: LogMessage, th
className="emote"
key={x}
alt={emote.code}
title={emote.code}
src={emote.urls.small}
/>);
emoteFound = true;
@ -106,4 +108,4 @@ export function Message({ message, thirdPartyEmotes }: { message: LogMessage, th
return <MessageContainer className="message">
{renderMessagePrefix}{renderMessage}
</MessageContainer>;
};
};