aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/voiceMessages/index.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-06 19:08:48 +0200
committerV <vendicated@riseup.net>2023-09-06 19:08:48 +0200
commit8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4 (patch)
tree645808ed82d1e48c2961f3ee37f6bb9a1b83a300 /src/plugins/voiceMessages/index.tsx
parentd2aac5edc5508c61aa328c4bb7a41affa4569b04 (diff)
downloadVencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.tar.gz
Vencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.tar.bz2
Vencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.zip
fix ViewRaw & VoiceMessages context menu style
Diffstat (limited to 'src/plugins/voiceMessages/index.tsx')
-rw-r--r--src/plugins/voiceMessages/index.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx
index 40578a6..a5271c2 100644
--- a/src/plugins/voiceMessages/index.tsx
+++ b/src/plugins/voiceMessages/index.tsx
@@ -19,7 +19,6 @@
import "./styles.css";
import { addContextMenuPatch, NavContextMenuPatchCallback, removeContextMenuPatch } from "@api/ContextMenu";
-import { Flex } from "@components/Flex";
import { Microphone } from "@components/Icons";
import { Devs } from "@utils/constants";
import { ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, openModal } from "@utils/modal";
@@ -39,6 +38,7 @@ import { VoiceRecorderWeb } from "./WebRecorder";
const CloudUpload = findLazy(m => m.prototype?.uploadFileToCloud);
const MessageCreator = findByPropsLazy("getSendMessageOptionsForReply", "sendMessage");
const PendingReplyStore = findStoreLazy("PendingReplyStore");
+const OptionClasses = findByPropsLazy("optionName", "optionIcon", "optionLabel");
export type VoiceRecorder = ComponentType<{
setAudioBlob(blob: Blob): void;
@@ -226,12 +226,10 @@ const ctxMenuPatch: NavContextMenuPatchCallback = (children, props) => () => {
<Menu.MenuItem
id="vc-send-vmsg"
label={
- <>
- <Flex flexDirection="row" style={{ alignItems: "center", gap: 8 }}>
- <Microphone height={24} width={24} />
- Send voice message
- </Flex>
- </>
+ <div className={OptionClasses.optionLabel}>
+ <Microphone className={OptionClasses.optionIcon} height={24} width={24} />
+ <div className={OptionClasses.optionName}>Send voice message</div>
+ </div>
}
action={() => openModal(modalProps => <Modal modalProps={modalProps} />)}
/>