mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Added native Twitch GIPHY support
This commit is contained in:
@@ -353,6 +353,8 @@ function ConstructMessageFromParts(parts) {
|
||||
return emoteImg + bitLabel;
|
||||
case "mention":
|
||||
return part.text;
|
||||
case "gif":
|
||||
return `<img src="${EscapeHTML(part.url)}" class="gif">`;
|
||||
default:
|
||||
return `<img src="${EscapeHTML(part.imageUrl)}" alt="${EscapeHTML(part.text)}" title="${EscapeHTML(part.text)}" class="emote">`;
|
||||
}
|
||||
|
||||
@@ -169,6 +169,11 @@ li {
|
||||
transform: translate(0px, 0.4em);
|
||||
}
|
||||
|
||||
.gif {
|
||||
width: auto;
|
||||
padding: 20px 0px;
|
||||
}
|
||||
|
||||
.productImage {
|
||||
height: 3em;
|
||||
border-radius: 0.25em;
|
||||
|
||||
Reference in New Issue
Block a user