mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
Fix votes appearing for unsubmitted segments
This commit is contained in:
@@ -126,6 +126,10 @@ div:hover > .sponsorBlockChapterBar {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.playerButton.hidden {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Removes auto width from being a ytp-player-button */
|
/* Removes auto width from being a ytp-player-button */
|
||||||
.sbPlayerDownvote {
|
.sbPlayerDownvote {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export class ChapterVote {
|
|||||||
setVisibility(show: boolean): void {
|
setVisibility(show: boolean): void {
|
||||||
const newState = {
|
const newState = {
|
||||||
show,
|
show,
|
||||||
|
...(!show ? { segment: null } : {})
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.ref.current) {
|
if (this.ref.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user