From 2cc1dcc6fd239e9ad3f0697548f049d5c28c908b Mon Sep 17 00:00:00 2001
From: Ajay <dev@ajay.app>
Date: Wed, 20 Jul 2022 18:48:53 -0400
Subject: Add better UI for warnings allowing you to accept without chatting

---
 src/render/GenericNotice.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'src/render/GenericNotice.tsx')

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++) {
-- 
cgit v1.2.3

