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>
)}
<Unclickable />
{withPopups && (
<>
<LogBoxManager />
<AlertManager />
<PromptManager />
<InvitationModal />
<Snackbar />
</>
)}
<div style={{ display: withPopups ? "inherit" : "none", position: "absolute" }}>
<LogBoxManager />
<AlertManager />
<PromptManager />
<InvitationModal />
<Snackbar />
</div>
<Apr1 />
</SnackbarProvider>
</HistoryProvider>