From c3852cb892e88eef6509d5114bd17910e72703cb Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 17 Jul 2024 02:34:05 +0200 Subject: [PATCH 1/2] fix badges on canary --- package.json | 1 + src/plugins/_api/badges/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cfd4bd010..5d8f9f97d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "buildReporter": "pnpm buildWebStandalone --reporter --skip-extension", "buildReporterDesktop": "pnpm build --reporter", "watch": "pnpm build --watch", + "dev": "pnpm watch", "watchWeb": "pnpm buildWeb --watch", "generatePluginJson": "tsx scripts/generatePluginList.ts", "generateTypes": "tspc --emitDeclarationOnly --declaration --outDir packages/vencord-types", diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx index 94dc673a5..89a992ac3 100644 --- a/src/plugins/_api/badges/index.tsx +++ b/src/plugins/_api/badges/index.tsx @@ -91,7 +91,7 @@ export default definePlugin({ /* new profiles */ { - find: ".PANEL]:14", + find: ".FULL_SIZE]:26", replacement: { match: /(?<=(\i)=\(0,\i\.\i\)\(\i\);)return 0===\i.length\?/, replace: "$1.unshift(...$self.getBadges(arguments[0].displayProfile));$&" From 67632ecc113ef490a322c894c6bb11e9c4c4b2e7 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 17 Jul 2024 02:35:53 +0200 Subject: [PATCH 2/2] MentionAvatars: fix mentions being ultra wide in topics --- src/plugins/mentionAvatars/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/mentionAvatars/styles.css b/src/plugins/mentionAvatars/styles.css index 33404d7b5..022f968c0 100644 --- a/src/plugins/mentionAvatars/styles.css +++ b/src/plugins/mentionAvatars/styles.css @@ -1,6 +1,6 @@ .vc-mentionAvatars-avatar { vertical-align: middle; - width: 1em; + width: 1em !important; /* insane discord sets width: 100% in channel topic */ height: 1em; margin: 0 4px 0.2rem 2px; border-radius: 50%;