Merge pull request #179 from ZonianMidian/patch-3

Better visibility of emotes name
This commit is contained in:
gempir 2022-11-09 18:38:10 +01:00 committed by GitHub
commit 8d91e02e51
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" className="emote"
key={x} key={x}
alt={emote.code} alt={emote.code}
title={emote.code}
src={`https://static-cdn.jtvnw.net/emoticons/v2/${emote.id}/default/dark/1.0`} src={`https://static-cdn.jtvnw.net/emoticons/v2/${emote.id}/default/dark/1.0`}
/>); />);
x += emote.endIndex - emote.startIndex - 1; x += emote.endIndex - emote.startIndex - 1;
@ -77,6 +78,7 @@ export function Message({ message, thirdPartyEmotes }: { message: LogMessage, th
className="emote" className="emote"
key={x} key={x}
alt={emote.code} alt={emote.code}
title={emote.code}
src={emote.urls.small} src={emote.urls.small}
/>); />);
emoteFound = true; emoteFound = true;
@ -106,4 +108,4 @@ export function Message({ message, thirdPartyEmotes }: { message: LogMessage, th
return <MessageContainer className="message"> return <MessageContainer className="message">
{renderMessagePrefix}{renderMessage} {renderMessagePrefix}{renderMessage}
</MessageContainer>; </MessageContainer>;
}; };