diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index d7dd8c8e4..1242ccce3 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -16,12 +16,15 @@ * along with this program. If not, see . */ +import "./styles.css"; + import { addMessageAccessory, removeMessageAccessory } from "@api/MessageAccessories"; import { updateMessage } from "@api/MessageUpdater"; import { definePluginSettings } from "@api/Settings"; import { getUserSettingLazy } from "@api/UserSettings"; import { BaseText } from "@components/BaseText"; import { Devs } from "@utils/constants.js"; +import { classNameFactory } from "@utils/css"; import { classes } from "@utils/misc"; import { Queue } from "@utils/Queue"; import definePlugin, { OptionType } from "@utils/types"; @@ -42,6 +45,7 @@ import { } from "@webpack/common"; import { ComponentType, JSX } from "react"; +const cl = classNameFactory("vc-message-link-embeds-"); const messageCache = new Map m.prototype?.renderSuppressButton); const ChannelMessage = findComponentByCodeLazy("childrenExecutedCommand:", ".hideAccessories"); let AutoModEmbed: ComponentType = () => null; -const SearchResultClasses = findCssClassesLazy("message", "searchResult"); const EmbedClasses = findCssClassesLazy("embedAuthorIcon", "embedAuthor", "embedAuthor", "embedMargin"); const MessageDisplayCompact = getUserSettingLazy("textAndImages", "messageDisplayCompact")!; @@ -302,7 +305,7 @@ function ChannelMessageEmbedAccessory({ message, channel }: MessageEmbedProps): } }} renderDescription={() => ( -
+