small performance upgrades

This commit is contained in:
coolesding 2023-11-04 15:22:07 +01:00 committed by GitHub
parent 5b6ed2ca4d
commit e7e7e60e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
/* AVATAR-TEMPLATE-BEGIN */ /* AVATAR-TEMPLATE-BEGIN */
/* Custom avatar for {id} */ /* Custom avatar for {id} */
div:is([style*="{id}"]), [style*="{id}"],
img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) { [src^="https://cdn.discordapp.com/avatars/{id}"] {
content: url({img}); content: url({img});
object-fit: scale-down; object-fit: scale-down;
aspect-ratio: 1; aspect-ratio: 1;
@ -11,7 +11,7 @@ img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
/* BADGE-TEMPLATE-BEGIN */ /* BADGE-TEMPLATE-BEGIN */
/* Custom badge for {id} */ /* Custom badge for {id} */
:is([class^=userPopoutInner], [class^=header_], [class^=userInfo_], [class^=none_]):has(img[src^="https://cdn.discordapp.com/avatars/{id}"]) div:is([class^=profileBadges_], [class^=badgeList_]):before { :is([class^=userPopoutInner], [class^=header_], [class^=userInfo_], [class^=none_]):has([src^="https://cdn.discordapp.com/avatars/{id}"]) :is([class^=profileBadges_], [class^=badgeList_]):before {
content: ""; content: "";
width: 22px; width: 22px;
height: 22px; height: 22px;