diff options
author | Ajay Ramachandran <[email protected]> | 2020-04-09 01:42:16 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-04-09 01:42:16 -0400 |
commit | adef65b8784a37dd98134312e1562cd45eefb4d8 (patch) | |
tree | f8eb21c95a2953acf6642962959183456b0e7c83 /src/components/NoticeComponent.tsx | |
parent | b7870cbd745882482295038e4ee915f9c3d26cef (diff) | |
download | SponsorBlock-adef65b8784a37dd98134312e1562cd45eefb4d8.tar.gz SponsorBlock-adef65b8784a37dd98134312e1562cd45eefb4d8.zip |
Made submission notice above other notices
Diffstat (limited to 'src/components/NoticeComponent.tsx')
-rw-r--r-- | src/components/NoticeComponent.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index 97b1040d..d554f85d 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -11,7 +11,9 @@ export interface NoticeProps { fadeIn?: boolean, // Callback for when this is closed - closeListener?: () => void + closeListener?: () => void, + + zIndex?: number } export interface NoticeState { @@ -62,7 +64,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> { render() { let noticeStyle: React.CSSProperties = { - zIndex: 50 + this.amountOfPreviousNotices + zIndex: this.props.zIndex || (50 + this.amountOfPreviousNotices) } return ( |