mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 06:57:09 +03:00
Make category tooltip work on mobile and make it clear after voting
This commit is contained in:
@@ -47,7 +47,11 @@ export class CategoryPill {
|
||||
|
||||
this.root = createRoot(this.container);
|
||||
this.ref = React.createRef();
|
||||
this.root.render(<CategoryPillComponent ref={this.ref} vote={this.vote} showTextByDefault={!this.onMobileYouTube} />);
|
||||
this.root.render(<CategoryPillComponent
|
||||
ref={this.ref}
|
||||
vote={this.vote}
|
||||
showTextByDefault={!this.onMobileYouTube}
|
||||
showTooltipOnClick={this.onMobileYouTube} />);
|
||||
|
||||
if (this.onMobileYouTube) {
|
||||
if (this.mutationObserver) {
|
||||
|
||||
Reference in New Issue
Block a user