aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/GenericNotice.tsx
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-06-22 17:06:29 +0530
committerAjay <[email protected]>2024-06-22 17:06:29 +0530
commitf177b95a5aeebc4e932a5984165144ca7ccab294 (patch)
tree9bc34c38c5ef7075a4e723e03518dd34eac78bbc /src/render/GenericNotice.tsx
parentd86dd37ec074dca000d978bc83400a0feec4014a (diff)
downloadSponsorBlock-f177b95a5aeebc4e932a5984165144ca7ccab294.tar.gz
SponsorBlock-f177b95a5aeebc4e932a5984165144ca7ccab294.zip
Fix submission menu after video ends and unskip button after video ends
Diffstat (limited to 'src/render/GenericNotice.tsx')
-rw-r--r--src/render/GenericNotice.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/GenericNotice.tsx b/src/render/GenericNotice.tsx
index d1a4443c..bbac6c94 100644
--- a/src/render/GenericNotice.tsx
+++ b/src/render/GenericNotice.tsx
@@ -8,6 +8,7 @@ const utils = new Utils();
import { ContentContainer } from "../types";
import NoticeTextSelectionComponent from "../components/NoticeTextSectionComponent";
import { ButtonListener } from "../../maze-utils/src/components/component-types";
+import { getVideo } from "../../maze-utils/src/video";
export interface TextBox {
icon: string;
@@ -75,7 +76,7 @@ export default class GenericNotice {
{options.textBoxes?.length > 0 ?
<tr id={"sponsorSkipNoticeMiddleRow" + this.idSuffix}
className="sponsorTimeMessagesRow"
- style={{maxHeight: this.contentContainer ? (this.contentContainer().v.offsetHeight - 200) + "px" : null}}>
+ style={{maxHeight: getVideo() ? (getVideo().offsetHeight - 200) + "px" : null}}>
<td style={{width: "100%"}}>
{this.getMessageBoxes(this.idSuffix, options.textBoxes)}
</td>