aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-08-19 23:16:45 -0400
committerAjay <[email protected]>2022-08-19 23:16:45 -0400
commit42d76cf2579968116473cdc24b70d18f84277b66 (patch)
tree503e347a52680399d8363472ec5414457a2ec38b /src/render
parentd06b7411dc828b1afcc100b439ff483106c2ab74 (diff)
parent780ea4a9d0b12762d10e787786816e3e8a6f9b26 (diff)
downloadSponsorBlock-42d76cf2579968116473cdc24b70d18f84277b66.tar.gz
SponsorBlock-42d76cf2579968116473cdc24b70d18f84277b66.zip
Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into chapters
Diffstat (limited to 'src/render')
-rw-r--r--src/render/GenericNotice.tsx10
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++) {