mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
Fix category pill text on new YouTube layout
This commit is contained in:
@@ -140,16 +140,17 @@ class CategoryPillComponent extends React.Component<CategoryPillProps, CategoryP
|
|||||||
}
|
}
|
||||||
|
|
||||||
private openTooltip(): void {
|
private openTooltip(): void {
|
||||||
const tooltipMount = document.querySelector("ytd-video-primary-info-renderer > #container") as HTMLElement;
|
const tooltipMount = document.querySelector("#above-the-fold") as HTMLElement;
|
||||||
if (tooltipMount) {
|
if (tooltipMount) {
|
||||||
this.tooltip = new Tooltip({
|
this.tooltip = new Tooltip({
|
||||||
text: this.getTitleText(),
|
text: this.getTitleText(),
|
||||||
referenceNode: tooltipMount,
|
referenceNode: tooltipMount,
|
||||||
bottomOffset: "70px",
|
bottomOffset: "0px",
|
||||||
opacity: 0.95,
|
opacity: 0.95,
|
||||||
displayTriangle: false,
|
displayTriangle: false,
|
||||||
showLogo: false,
|
showLogo: false,
|
||||||
showGotIt: false
|
showGotIt: false,
|
||||||
|
prependElement: tooltipMount.firstElementChild as HTMLElement
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user