aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐỗ Văn Hoài Tuân <htuan03@gmail.com>2023-04-03 20:33:11 -0700
committerGitHub <noreply@github.com>2023-04-04 05:33:11 +0200
commitd931790ed0dd41b22df01584dc63d9b2b78ab6a6 (patch)
tree7bf5b998d78fa2144cf619969056aa3c3621fcf4
parent6b26c12bfa1f28d40834478b50d2f7b09c9f54fb (diff)
downloadVencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.tar.gz
Vencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.tar.bz2
Vencord-d931790ed0dd41b22df01584dc63d9b2b78ab6a6.zip
BetterFolders: Fix unread indicator & read all buttons being duplicated (#776)
-rw-r--r--src/plugins/betterFolders/betterFolders.css3
-rw-r--r--src/plugins/readAllNotificationsButton.tsx4
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);
}
});