From d931790ed0dd41b22df01584dc63d9b2b78ab6a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BB=97=20V=C4=83n=20Ho=C3=A0i=20Tu=C3=A2n?= Date: Mon, 3 Apr 2023 20:33:11 -0700 Subject: [PATCH] BetterFolders: Fix unread indicator & read all buttons being duplicated (#776) --- src/plugins/betterFolders/betterFolders.css | 3 ++- src/plugins/readAllNotificationsButton.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/betterFolders/betterFolders.css b/src/plugins/betterFolders/betterFolders.css index 11509915..5d8fc218 100644 --- a/src/plugins/betterFolders/betterFolders.css +++ b/src/plugins/betterFolders/betterFolders.css @@ -1,4 +1,5 @@ -.vc-bf-folder-sidebar [class*="wrapper-"] > [class*="listItem-"]:first-of-type { +.vc-bf-folder-sidebar [class*="wrapper-"] > [class*="listItem-"]:first-of-type, +.vc-bf-folder-sidebar [class*="unreadMentionsIndicator"] { display: none; } diff --git a/src/plugins/readAllNotificationsButton.tsx b/src/plugins/readAllNotificationsButton.tsx index ee6ecde3..b5b0b5f8 100644 --- a/src/plugins/readAllNotificationsButton.tsx +++ b/src/plugins/readAllNotificationsButton.tsx @@ -62,10 +62,10 @@ export default definePlugin({ renderReadAllButton: () => , start() { - addServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); + addServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton); }, stop() { - removeServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); + removeServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton); } });