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>
This commit is contained in:
Ryan Cao 2023-07-25 21:34:57 +08:00 committed by GitHub
parent d56e6560e5
commit b4d0d95731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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);"
}
}

View File

@ -1,3 +1,8 @@
.vc-toolbox-btn,
.vc-toolbox-btn svg {
-webkit-app-region: no-drag;
}
.vc-toolbox-btn svg {
color: var(--interactive-normal);
}