From 2e17280863b2e46ffc90bf738f8f22a9a6e69062 Mon Sep 17 00:00:00 2001
From: Nilay Majorwar <nilaymajorwar@gmail.com>
Date: Sat, 19 Feb 2022 23:08:52 +0530
Subject: [PATCH] Fix UI of unexpected error dialog

---
 ui/providers/error-boundary-provider.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ui/providers/error-boundary-provider.tsx b/ui/providers/error-boundary-provider.tsx
index 9afc364..cea28a2 100644
--- a/ui/providers/error-boundary-provider.tsx
+++ b/ui/providers/error-boundary-provider.tsx
@@ -6,13 +6,15 @@ const CREATE_ISSUE_URL = "https://github.com/nilaymaj/esolang-park/issues/new";
 const styles = {
   errorTitle: {
     fontWeight: "bold",
-    whiteSpace: "pre-wrap" as "pre-wrap",
+    whiteSpace: "pre-wrap" as const,
   },
   callStack: {
     padding: 10,
+    maxHeight: 300,
+    overflowY: "auto" as const,
     borderRadius: 10,
     background: Colors.RED1,
-    whiteSpace: "pre-wrap" as "pre-wrap",
+    whiteSpace: "pre-wrap" as const,
     border: "1px solid " + Colors.RED4,
   },
 };
@@ -32,6 +34,7 @@ export const ErrorBoundaryProvider = (props: { children: React.ReactNode }) => {
           <Toast
             icon="error"
             intent="danger"
+            timeout={0}
             onDismiss={() => setError(null)}
             message={
               <Text>