From 5001e506d29a2a92364e5120977fbf581b26efcd Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 30 Jan 2025 10:34:30 -0500 Subject: [PATCH] Fix ImplicitRelationships --- src/equicordplugins/channelTabs/components/ChannelTab.tsx | 2 +- src/plugins/implicitRelationships/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/channelTabs/components/ChannelTab.tsx b/src/equicordplugins/channelTabs/components/ChannelTab.tsx index 0a601b36..f8350ef4 100644 --- a/src/equicordplugins/channelTabs/components/ChannelTab.tsx +++ b/src/equicordplugins/channelTabs/components/ChannelTab.tsx @@ -70,7 +70,7 @@ export const NotificationDot = ({ channelIds }: { channelIds: string[]; }) => { data-has-mention={!!mentionCount} className={classes(dotStyles.numberBadge, dotStyles.baseShapeRound)} style={{ - width: 16 + width: "16px" }} ref={node => node?.style.setProperty("background-color", mentionCount ? "var(--red-400)" : "var(--brand-500)", "important" diff --git a/src/plugins/implicitRelationships/index.ts b/src/plugins/implicitRelationships/index.ts index c6b61ef4..b58ad67d 100644 --- a/src/plugins/implicitRelationships/index.ts +++ b/src/plugins/implicitRelationships/index.ts @@ -50,8 +50,8 @@ export default definePlugin({ { find: "#{intl::FRIENDS_SECTION_ONLINE}", replacement: { - match: /(\(0,\i\.jsx\)\(\i\.\i\.Item,\{id:\i\.\i)\.BLOCKED,className:([^\s]+?)\.item,children:\i\.\i\.string\(\i\.\i#{intl::BLOCKED}\)\}\)/, - replace: "$1.IMPLICIT,className:$2.item,children:\"Implicit\"}),$&" + match: /(\{id:\i\.\i\i)\.BLOCKED,.{0,150}(\i)\.item/, + replace: "$1.IMPLICIT,show:!0,content:\"Implicit\",className:$2.item},$&" }, }, // Sections content