mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 22:47:18 +03:00
Remove text from category pills on mobile and don't make them take full height of title box
This commit is contained in:
@@ -47,7 +47,7 @@ export class CategoryPill {
|
||||
|
||||
this.root = createRoot(this.container);
|
||||
this.ref = React.createRef();
|
||||
this.root.render(<CategoryPillComponent ref={this.ref} vote={this.vote} />);
|
||||
this.root.render(<CategoryPillComponent ref={this.ref} vote={this.vote} showTextByDefault={!this.onMobileYouTube} />);
|
||||
|
||||
if (this.onMobileYouTube) {
|
||||
if (this.mutationObserver) {
|
||||
@@ -76,6 +76,7 @@ export class CategoryPill {
|
||||
// Use a parent because YouTube does weird things to the top level object
|
||||
// react would have to rerender if container was the top level
|
||||
const parent = document.createElement("span");
|
||||
parent.id = "categoryPillParent";
|
||||
parent.appendChild(this.container);
|
||||
|
||||
referenceNode.prepend(parent);
|
||||
|
||||
Reference in New Issue
Block a user