diff options
author | Đỗ Văn Hoài Tuân <htuan03@gmail.com> | 2023-04-03 20:33:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 05:33:11 +0200 |
commit | d931790ed0dd41b22df01584dc63d9b2b78ab6a6 (patch) | |
tree | 7bf5b998d78fa2144cf619969056aa3c3621fcf4 /src | |
parent | 6b26c12bfa1f28d40834478b50d2f7b09c9f54fb (diff) | |
download | Vencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.tar.gz Vencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.tar.bz2 Vencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.zip |
BetterFolders: Fix unread indicator & read all buttons being duplicated (#776)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/betterFolders/betterFolders.css | 3 | ||||
-rw-r--r-- | 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 1150991..5d8fc21 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 ee6ecde..b5b0b5f 100644 --- a/src/plugins/readAllNotificationsButton.tsx +++ b/src/plugins/readAllNotificationsButton.tsx @@ -62,10 +62,10 @@ export default definePlugin({ renderReadAllButton: () => <ReadAllButton />, start() { - addServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); + addServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton); }, stop() { - removeServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); + removeServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton); } }); |