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

main
Đỗ Văn Hoài Tuân 2 years ago committed by GitHub
parent 6b26c12bfa
commit d931790ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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; display: none;
} }

@ -62,10 +62,10 @@ export default definePlugin({
renderReadAllButton: () => <ReadAllButton />, renderReadAllButton: () => <ReadAllButton />,
start() { start() {
addServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); addServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton);
}, },
stop() { stop() {
removeServerListElement(ServerListRenderPosition.In, this.renderReadAllButton); removeServerListElement(ServerListRenderPosition.Above, this.renderReadAllButton);
} }
}); });

Loading…
Cancel
Save