From 685b6f2fa799123273581fef52316a9136ffd1c4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 6 Feb 2024 17:50:45 +0100 Subject: [PATCH] Improve PreviewMessage icon; make button padding/margin more consistent Co-authored-by: Andrew Grant --- src/api/ChatButtons.tsx | 8 ++++---- src/plugins/invisibleChat.desktop/index.tsx | 7 +++---- src/plugins/previewMessage/index.tsx | 12 ++++++++++-- src/plugins/sendTimestamps/index.tsx | 6 ++---- src/plugins/sendTimestamps/styles.css | 4 ---- src/plugins/silentMessageToggle/index.tsx | 10 ++++++---- src/plugins/silentTyping/index.tsx | 3 --- src/plugins/translate/TranslateIcon.tsx | 5 ++--- src/plugins/translate/styles.css | 4 ++++ 9 files changed, 31 insertions(+), 28 deletions(-) diff --git a/src/api/ChatButtons.tsx b/src/api/ChatButtons.tsx index 84cca227f..c2194dd70 100644 --- a/src/api/ChatButtons.tsx +++ b/src/api/ChatButtons.tsx @@ -13,8 +13,8 @@ import { Button, ButtonLooks, ButtonWrapperClasses, Tooltip } from "@webpack/com import { Channel } from "discord-types/general"; import { HTMLProps, MouseEventHandler, ReactNode } from "react"; -let CssClasses: { buttonContainer: string; }; -waitFor(["buttonContainer", "channelTextArea"], m => CssClasses = m); +let ChannelTextAreaClasses: Record<"button" | "buttonContainer", string>; +waitFor(["buttonContainer", "channelTextArea"], m => ChannelTextAreaClasses = m); export interface ChatBarProps { channel: Channel; @@ -106,14 +106,14 @@ export const ChatBarButton = ErrorBoundary.wrap((props: ChatBarButtonProps) => { return ( {({ onMouseEnter, onMouseLeave }) => ( -
+