From b4d0d9573165ab388b68ed0277a1c9fe4f42046c Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Tue, 25 Jul 2023 21:34:57 +0800 Subject: [PATCH] fix vencord toolbox being unusable with drag region (#1480) * fix(OpenInApp): Broken patch (#1434) * fix: vencord toolbox unreachable with drag region --------- Co-authored-by: whqwert <94757998+whqwert@users.noreply.github.com> --- src/plugins/openInApp.ts | 2 +- src/plugins/vencordToolbox/index.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/openInApp.ts b/src/plugins/openInApp.ts index 83cd8289c..2db0b8dde 100644 --- a/src/plugins/openInApp.ts +++ b/src/plugins/openInApp.ts @@ -71,7 +71,7 @@ export default definePlugin({ { find: ".CONNECTED_ACCOUNT_VIEWED,", replacement: { - match: /(?<=href:\i,onClick:function\(\)\{)(?=return \i=(\i)\.type,.{0,50}CONNECTED_ACCOUNT_VIEWED)/, + match: /(?<=href:\i,onClick:function\(\i\)\{)(?=\i=(\i)\.type,.{0,50}CONNECTED_ACCOUNT_VIEWED)/, replace: "$self.handleAccountView(arguments[0],$1.type,$1.id);" } } diff --git a/src/plugins/vencordToolbox/index.css b/src/plugins/vencordToolbox/index.css index 422e36d6c..8b509868f 100644 --- a/src/plugins/vencordToolbox/index.css +++ b/src/plugins/vencordToolbox/index.css @@ -1,3 +1,8 @@ +.vc-toolbox-btn, +.vc-toolbox-btn svg { + -webkit-app-region: no-drag; +} + .vc-toolbox-btn svg { color: var(--interactive-normal); }