From e7e7e60e2616b33278fb2419b901bd4e6d9d7054 Mon Sep 17 00:00:00 2001 From: coolesding <71647195+coolesding@users.noreply.github.com> Date: Sat, 4 Nov 2023 15:22:07 +0100 Subject: [PATCH] small performance upgrades --- source/template.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/template.css b/source/template.css index b687458e..435bb3f5 100644 --- a/source/template.css +++ b/source/template.css @@ -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 */ \ No newline at end of file +/* BADGE-TEMPLATE-END */