mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-01 02:02:22 +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
|
// 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user