UI: Keep tail windows and dialogs mounted but hidden on pages where they are not shown (#769)

This commit is contained in:
Michael Ficocelli 2023-08-31 21:31:59 -04:00 committed by GitHub
parent ae87851889
commit 52769706d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -398,15 +398,13 @@ export function GameRoot(): React.ReactElement {
<Box className={classes.root}>{mainPage}</Box> <Box className={classes.root}>{mainPage}</Box>
)} )}
<Unclickable /> <Unclickable />
{withPopups && ( <div style={{ display: withPopups ? "inherit" : "none", position: "absolute" }}>
<>
<LogBoxManager /> <LogBoxManager />
<AlertManager /> <AlertManager />
<PromptManager /> <PromptManager />
<InvitationModal /> <InvitationModal />
<Snackbar /> <Snackbar />
</> </div>
)}
<Apr1 /> <Apr1 />
</SnackbarProvider> </SnackbarProvider>
</HistoryProvider> </HistoryProvider>