aboutsummaryrefslogtreecommitdiff
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
parentd2aac5edc5508c61aa328c4bb7a41affa4569b04 (diff)
downloadVencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.tar.gz
Vencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.tar.bz2
Vencord-8ecee3d09ffbfa1ad81e211a7e446b9729d42cb4.zip
fix ViewRaw & VoiceMessages context menu style
-rw-r--r--src/plugins/viewRaw.tsx2
-rw-r--r--src/plugins/voiceMessages/index.tsx12
2 files changed, 6 insertions, 8 deletions
diff --git a/src/plugins/viewRaw.tsx b/src/plugins/viewRaw.tsx
index 6614ea8..6012764 100644
--- a/src/plugins/viewRaw.tsx
+++ b/src/plugins/viewRaw.tsx
@@ -32,7 +32,7 @@ import { Message } from "discord-types/general";
const CopyIcon = () => {
- return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="22" height="22">
+ return <svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" width="18" height="18">
<path d="M12.9297 3.25007C12.7343 3.05261 12.4154 3.05226 12.2196 3.24928L11.5746 3.89824C11.3811 4.09297 11.3808 4.40733 11.5739 4.60245L16.5685 9.64824C16.7614 9.84309 16.7614 10.1569 16.5685 10.3517L11.5739 15.3975C11.3808 15.5927 11.3811 15.907 11.5746 16.1017L12.2196 16.7507C12.4154 16.9477 12.7343 16.9474 12.9297 16.7499L19.2604 10.3517C19.4532 10.1568 19.4532 9.84314 19.2604 9.64832L12.9297 3.25007Z" />
<path d="M8.42616 4.60245C8.6193 4.40733 8.61898 4.09297 8.42545 3.89824L7.78047 3.24928C7.58466 3.05226 7.26578 3.05261 7.07041 3.25007L0.739669 9.64832C0.5469 9.84314 0.546901 10.1568 0.739669 10.3517L7.07041 16.7499C7.26578 16.9474 7.58465 16.9477 7.78047 16.7507L8.42545 16.1017C8.61898 15.907 8.6193 15.5927 8.42616 15.3975L3.43155 10.3517C3.23869 10.1569 3.23869 9.84309 3.43155 9.64824L8.42616 4.60245Z" />
</svg>;
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} />)}
/>