mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-01 07:39:12 +00:00
[HTML] Use svg variants of Twemoji for better resize quality
This commit is contained in:
@@ -57,7 +57,7 @@ namespace DiscordChatExporter.Core.Discord.Data
|
||||
|
||||
// Standard emoji
|
||||
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)
|
||||
|
||||
@@ -146,8 +146,8 @@ img {
|
||||
}
|
||||
|
||||
.emoji {
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
width: 1.325em;
|
||||
height: 1.325em;
|
||||
margin: 0 0.06em;
|
||||
vertical-align: -0.4em;
|
||||
}
|
||||
@@ -256,8 +256,8 @@ img {
|
||||
}
|
||||
|
||||
.chatlog__reference-content > .emoji {
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
width: 1.325em;
|
||||
height: 1.325em;
|
||||
}
|
||||
|
||||
.chatlog__reference-edited-timestamp {
|
||||
|
||||
Reference in New Issue
Block a user