From 6eab1c1e1645eb77129e6124d28acabfcf213f30 Mon Sep 17 00:00:00 2001
From: Beebles <102569435+beebls@users.noreply.github.com>
Date: Fri, 26 Sep 2025 15:54:10 -0600
Subject: add scroll overflow

---
 frontend/src/components/AnnouncementsDisplay.tsx | 32 +++++++++++++-----------
 1 file changed, 17 insertions(+), 15 deletions(-)

(limited to 'frontend/src/components/AnnouncementsDisplay.tsx')

diff --git a/frontend/src/components/AnnouncementsDisplay.tsx b/frontend/src/components/AnnouncementsDisplay.tsx
index e3a07e2d..fa057045 100644
--- a/frontend/src/components/AnnouncementsDisplay.tsx
+++ b/frontend/src/components/AnnouncementsDisplay.tsx
@@ -178,7 +178,7 @@ function AnnouncementModal({
   onHide: () => void;
 }) {
   return (
-    <ModalRoot>
+    <ModalRoot onCancel={closeModal} onEscKeypress={closeModal}>
       <style>
         {`
           .steam-focus {
@@ -200,20 +200,22 @@ function AnnouncementModal({
           }
         `}
       </style>
-      <h1>{announcement.title}</h1>
-      <WithSuspense>
-        <MarkdownRenderer
-          onDismiss={() => {
-            console.log('Dismiss');
-            closeModal?.();
-          }}
-        >
-          {announcement.text}
-        </MarkdownRenderer>
-      </WithSuspense>
-      <Focusable style={{ display: 'flex', gap: '0.5rem' }}>
-        <DialogButton onClick={() => onHide()}>Close Popup</DialogButton>
-        <DialogButton onClick={() => onHide()}>Close and Hide Announcement</DialogButton>
+      <Focusable style={{display: "flex", flexDirection: "column", gap: "0.5rem", overflowY: "scroll", height: "80vh"}}>
+        <h1>{announcement.title}</h1>
+        <WithSuspense>
+          <MarkdownRenderer
+            onDismiss={() => {
+              console.log('Dismiss');
+              closeModal?.();
+            }}
+          >
+            {announcement.text}
+          </MarkdownRenderer>
+        </WithSuspense>
+        <Focusable style={{ display: 'flex', gap: '0.5rem' }}>
+          <DialogButton onClick={() => onHide()}>Close Popup</DialogButton>
+          <DialogButton onClick={() => onHide()}>Close and Hide Announcement</DialogButton>
+        </Focusable>
       </Focusable>
     </ModalRoot>
   );
-- 
cgit v1.2.3

