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 */
/* Custom avatar for {id} */
div:is([style*="{id}"]),
img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
[style*="{id}"],
[src^="https://cdn.discordapp.com/avatars/{id}"] {
content: url({img});
object-fit: scale-down;
aspect-ratio: 1;
@ -11,10 +11,10 @@ img:is([src^="https://cdn.discordapp.com/avatars/{id}"]) {
/* BADGE-TEMPLATE-BEGIN */
/* 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: "";
width: 22px;
height: 22px;
background: url({img}) center / 100% 100%;
}
/* BADGE-TEMPLATE-END */
/* BADGE-TEMPLATE-END */