[HTML] Use svg variants of Twemoji for better resize quality

pull/613/head
Tyrrrz 3 years ago
parent 24a80f915f
commit 998bdaf2d4

@ -57,7 +57,7 @@ namespace DiscordChatExporter.Core.Discord.Data
// Standard emoji // Standard emoji
var twemojiName = GetTwemojiName(name); var twemojiName = GetTwemojiName(name);
return $"https://twemoji.maxcdn.com/2/72x72/{twemojiName}.png"; return $"https://twemoji.maxcdn.com/2/svg/{twemojiName}.svg";
} }
public static Emoji Parse(JsonElement json) public static Emoji Parse(JsonElement json)

@ -146,8 +146,8 @@ img {
} }
.emoji { .emoji {
width: 1.25em; width: 1.325em;
height: 1.25em; height: 1.325em;
margin: 0 0.06em; margin: 0 0.06em;
vertical-align: -0.4em; vertical-align: -0.4em;
} }
@ -256,8 +256,8 @@ img {
} }
.chatlog__reference-content > .emoji { .chatlog__reference-content > .emoji {
width: 1.25em; width: 1.325em;
height: 1.25em; height: 1.325em;
} }
.chatlog__reference-edited-timestamp { .chatlog__reference-edited-timestamp {

Loading…
Cancel
Save