Use 512x512 user profile pictures (#826)

This commit is contained in:
Chris Helder 2022-04-07 16:39:07 -05:00 committed by GitHub
parent ffe5544f9c
commit 65cc3954b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -30,7 +30,7 @@ public partial record User
? "gif" ? "gif"
: "png"; : "png";
return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.{extension}?size=128"; return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.{extension}?size=512";
} }
public static User Parse(JsonElement json) public static User Parse(JsonElement json)
@ -47,4 +47,4 @@ public partial record User
return new User(id, isBot, discriminator, name, avatarUrl); return new User(id, isBot, discriminator, name, avatarUrl);
} }
} }

View file

@ -302,6 +302,7 @@
border-radius: 50%; border-radius: 50%;
width: 40px; width: 40px;
height: 40px; height: 40px;
image-rendering: high-quality;
} }
.chatlog__messages { .chatlog__messages {
@ -777,4 +778,4 @@
</div> </div>
@{/* Preamble cuts off at this point */} @{/* Preamble cuts off at this point */}
<div class="chatlog"> <div class="chatlog">