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;
|
return emoteImg + bitLabel;
|
||||||
case "mention":
|
case "mention":
|
||||||
return part.text;
|
return part.text;
|
||||||
|
case "gif":
|
||||||
|
return `<img src="${EscapeHTML(part.url)}" class="gif">`;
|
||||||
default:
|
default:
|
||||||
return `<img src="${EscapeHTML(part.imageUrl)}" alt="${EscapeHTML(part.text)}" title="${EscapeHTML(part.text)}" class="emote">`;
|
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);
|
transform: translate(0px, 0.4em);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gif {
|
||||||
|
width: auto;
|
||||||
|
padding: 20px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.productImage {
|
.productImage {
|
||||||
height: 3em;
|
height: 3em;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
|
|||||||
Reference in New Issue
Block a user