mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
Raise z index of notice to be in front of endcards
This commit is contained in:
@@ -70,7 +70,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> {
|
|||||||
|
|
||||||
render(): React.ReactElement {
|
render(): React.ReactElement {
|
||||||
const noticeStyle: React.CSSProperties = {
|
const noticeStyle: React.CSSProperties = {
|
||||||
zIndex: this.props.zIndex || (50 + this.amountOfPreviousNotices)
|
zIndex: this.props.zIndex || (1000 + this.amountOfPreviousNotices)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
|
|||||||
|
|
||||||
render(): React.ReactElement {
|
render(): React.ReactElement {
|
||||||
const noticeStyle: React.CSSProperties = {
|
const noticeStyle: React.CSSProperties = {
|
||||||
zIndex: 1000 + this.amountOfPreviousNotices
|
zIndex: 1500 + this.amountOfPreviousNotices
|
||||||
}
|
}
|
||||||
if (this.contentContainer().onMobileYouTube) {
|
if (this.contentContainer().onMobileYouTube) {
|
||||||
noticeStyle.bottom = "4em";
|
noticeStyle.bottom = "4em";
|
||||||
|
|||||||
Reference in New Issue
Block a user