diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index 3867fa0a..5317e7a3 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -15,7 +15,8 @@ export interface NoticeProps { // Callback for when this is closed closeListener: () => void, - zIndex?: number + zIndex?: number, + style?: React.CSSProperties } export interface NoticeState { @@ -70,7 +71,8 @@ class NoticeComponent extends React.Component { render(): React.ReactElement { const noticeStyle: React.CSSProperties = { - zIndex: this.props.zIndex || (50 + this.amountOfPreviousNotices) + zIndex: this.props.zIndex || (1000 + this.amountOfPreviousNotices), + ...(this.props.style ?? {}) } return ( diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 01b2a15e..c82249e0 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -126,9 +126,7 @@ class SkipNoticeComponent extends React.Component this.contentContainer().v?.playbackRate} + style={noticeStyle} ref={this.noticeRef} closeListener={() => this.closeListener()}>