diff options
Diffstat (limited to 'src/render/GenericNotice.tsx')
-rw-r--r-- | src/render/GenericNotice.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/render/GenericNotice.tsx b/src/render/GenericNotice.tsx index 32f0ad50..639edb86 100644 --- a/src/render/GenericNotice.tsx +++ b/src/render/GenericNotice.tsx @@ -73,7 +73,13 @@ export default class GenericNotice { hideRightInfo={options.hideRightInfo} closeListener={() => this.close()} > - {this.getMessageBox(this.idSuffix, options.textBoxes)} + <tr id={"sponsorSkipNoticeMiddleRow" + this.idSuffix} + className="sponsorTimeMessagesRow" + style={{maxHeight: (this.contentContainer().v.offsetHeight - 200) + "px"}}> + <td style={{width: "100%"}}> + {this.getMessageBoxes(this.idSuffix, options.textBoxes)} + </td> + </tr> <tr id={"sponsorSkipNoticeSpacer" + this.idSuffix} className="sponsorBlockSpacer"> @@ -90,7 +96,7 @@ export default class GenericNotice { ); } - getMessageBox(idSuffix: string, textBoxes: TextBox[]): JSX.Element[] { + getMessageBoxes(idSuffix: string, textBoxes: TextBox[]): JSX.Element[] { if (textBoxes) { const result = []; for (let i = 0; i < textBoxes.length; i++) { |