From b875ebf92dea64f83e00bc414e190c0db4ff792a Mon Sep 17 00:00:00 2001
From: Nuckyz <61953774+Nuckyz@users.noreply.github.com>
Date: Thu, 19 Sep 2024 05:25:31 -0300
Subject: [PATCH] UserVoiceShow: Fix setting name
---
src/plugins/userVoiceShow/components.tsx | 3 ++-
src/plugins/userVoiceShow/index.tsx | 6 +++---
src/plugins/userVoiceShow/style.css | 10 +++++++---
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/plugins/userVoiceShow/components.tsx b/src/plugins/userVoiceShow/components.tsx
index fd7dbd29..c04820e8 100644
--- a/src/plugins/userVoiceShow/components.tsx
+++ b/src/plugins/userVoiceShow/components.tsx
@@ -103,7 +103,7 @@ function VoiceChannelTooltip({ channel }: VoiceChannelTooltipProps) {
@@ -159,6 +159,7 @@ export const VoiceChannelIndicator = ErrorBoundary.wrap(({ userId }: VoiceChanne
}
tooltipClassName={cl("tooltip-container")}
+ tooltipContentClassName={cl("tooltip-content")}
>
{props =>
isLocked ?
diff --git a/src/plugins/userVoiceShow/index.tsx b/src/plugins/userVoiceShow/index.tsx
index dee713b5..5efd936c 100644
--- a/src/plugins/userVoiceShow/index.tsx
+++ b/src/plugins/userVoiceShow/index.tsx
@@ -32,7 +32,7 @@ const settings = definePluginSettings({
default: true,
restartNeeded: true
},
- showInVoiceMemberList: {
+ showInMemberList: {
type: OptionType.BOOLEAN,
description: "Show a user's Voice Channel indicator in the member and DMs list",
default: true,
@@ -82,12 +82,12 @@ export default definePlugin({
match: /\.subtext,children:.+?}\)\]}\)(?=])/,
replace: "$&,$self.VoiceChannelIndicator({userId:arguments[0]?.user?.id})"
},
- predicate: () => settings.store.showInVoiceMemberList
+ predicate: () => settings.store.showInMemberList
}
],
start() {
- if (settings.store.showInVoiceMemberList) {
+ if (settings.store.showInMemberList) {
addDecorator("UserVoiceShow", ({ user }) => user == null ? null : );
}
},
diff --git a/src/plugins/userVoiceShow/style.css b/src/plugins/userVoiceShow/style.css
index b4cc0063..3e36df21 100644
--- a/src/plugins/userVoiceShow/style.css
+++ b/src/plugins/userVoiceShow/style.css
@@ -15,7 +15,13 @@
}
.vc-uvs-tooltip-container {
- max-width: 200px;
+ max-width: 300px;
+}
+
+.vc-uvs-tooltip-content {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
}
.vc-uvs-guild-name {
@@ -31,7 +37,5 @@
.vc-uvs-vc-members {
display: flex;
- margin: 8px 0;
- flex-direction: row;
gap: 6px;
}