From 70dd02be202ae1b87ef8f7a2563ba09a3e7b0947 Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sun, 21 Aug 2022 03:19:03 +0200
Subject: refactor(frontend): improve code splitting

---
 subprojects/frontend/src/index.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'subprojects/frontend/src/index.tsx')

diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx
index 460f6f77..3f06b332 100644
--- a/subprojects/frontend/src/index.tsx
+++ b/subprojects/frontend/src/index.tsx
@@ -1,3 +1,4 @@
+import Box from '@mui/material/Box';
 import CssBaseline from '@mui/material/CssBaseline';
 import { SnackbarProvider } from 'notistack';
 import React, { Suspense, lazy } from 'react';
@@ -71,9 +72,11 @@ const app = (
         <WindowControlsOverlayColor />
         <SnackbarProvider>
           <RegisterServiceWorker />
-          <Suspense fallback={<Loading />}>
-            <App />
-          </Suspense>
+          <Box height="100vh" overflow="auto">
+            <Suspense fallback={<Loading />}>
+              <App />
+            </Suspense>
+          </Box>
         </SnackbarProvider>
       </ThemeProvider>
     </RootStoreProvider>
-- 
cgit v1.2.3-54-g00ecf

