diff options
author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2023-07-25 21:34:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 15:34:57 +0200 |
commit | b4d0d9573165ab388b68ed0277a1c9fe4f42046c (patch) | |
tree | 1bbd11e6e6aaa8e19ce9775df79a54d2efcb2e54 /src/plugins | |
parent | d56e6560e534ace699a77867a213d18229e47810 (diff) | |
download | Vencord-b4d0d9573165ab388b68ed0277a1c9fe4f42046c.tar.gz Vencord-b4d0d9573165ab388b68ed0277a1c9fe4f42046c.tar.bz2 Vencord-b4d0d9573165ab388b68ed0277a1c9fe4f42046c.zip |
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>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/openInApp.ts | 2 | ||||
-rw-r--r-- | src/plugins/vencordToolbox/index.css | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/openInApp.ts b/src/plugins/openInApp.ts index 83cd828..2db0b8d 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 422e36d..8b50986 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); } |