BetterFolders: Fix unread indicator & read all buttons being duplicated (#776)

This commit is contained in:
Đỗ Văn Hoài Tuân 2023-04-03 20:33:11 -07:00 committed by GitHub
parent 6b26c12bfa
commit d931790ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}
});