Fix votes appearing for unsubmitted segments

This commit is contained in:
Ajay 2022-09-05 00:14:23 -04:00
parent 4c568212ac
commit 3316072f5d
2 changed files with 5 additions and 0 deletions

View file

@ -126,6 +126,10 @@ div:hover > .sponsorBlockChapterBar {
vertical-align: top;
}
.playerButton.hidden {
display: none !important;
}
/* Removes auto width from being a ytp-player-button */
.sbPlayerDownvote {
width: auto !important;

View file

@ -37,6 +37,7 @@ export class ChapterVote {
setVisibility(show: boolean): void {
const newState = {
show,
...(!show ? { segment: null } : {})
};
if (this.ref.current) {