aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Cao <70191398+ryanccn@users.noreply.github.com>2023-07-25 21:34:57 +0800
committerGitHub <noreply@github.com>2023-07-25 15:34:57 +0200
commitb4d0d9573165ab388b68ed0277a1c9fe4f42046c (patch)
tree1bbd11e6e6aaa8e19ce9775df79a54d2efcb2e54 /src
parentd56e6560e534ace699a77867a213d18229e47810 (diff)
downloadVencord-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')
-rw-r--r--src/plugins/openInApp.ts2
-rw-r--r--src/plugins/vencordToolbox/index.css5
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);
}