aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/NoticeComponent.tsx
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-04-09 01:42:16 -0400
committerAjay Ramachandran <[email protected]>2020-04-09 01:42:16 -0400
commitadef65b8784a37dd98134312e1562cd45eefb4d8 (patch)
treef8eb21c95a2953acf6642962959183456b0e7c83 /src/components/NoticeComponent.tsx
parentb7870cbd745882482295038e4ee915f9c3d26cef (diff)
downloadSponsorBlock-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.tsx6
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 (