aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-07-20 18:48:53 -0400
committerAjay <[email protected]>2022-07-20 18:48:53 -0400
commit2cc1dcc6fd239e9ad3f0697548f049d5c28c908b (patch)
tree9e403b54231d334661ebe8d40b30202d232ef546 /src/render
parent31cc4b4960517a298db417c108713bf487c1cba6 (diff)
downloadSponsorBlock-2cc1dcc6fd239e9ad3f0697548f049d5c28c908b.tar.gz
SponsorBlock-2cc1dcc6fd239e9ad3f0697548f049d5c28c908b.zip
Add better UI for warnings allowing you to accept without chatting
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 d00799fb..60b69835 100644
--- a/src/render/GenericNotice.tsx
+++ b/src/render/GenericNotice.tsx
@@ -64,7 +64,13 @@ export default class GenericNotice {
extraClass={options.extraClass}
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">
@@ -81,7 +87,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++) {