Skip to content

Commit

Permalink
Wrap LoadingOverlay & Outlet by Box (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimurash committed Dec 10, 2024
1 parent e04c767 commit 9503dd8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions frontend/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Box,
ColorSchemeScript,
LoadingOverlay,
MantineProvider,
Expand Down Expand Up @@ -62,11 +63,13 @@ export default function App() {

return (
<>
<LoadingOverlay
visible={navigation.state !== 'idle'}
overlayProps={{ radius: 'sm', blur: 1 }}
/>
<Outlet />
<Box pos="relative">
<LoadingOverlay
visible={navigation.state !== 'idle'}
overlayProps={{ radius: 'sm', blur: 1 }}
/>
<Outlet />
</Box>
</>
);
}

0 comments on commit 9503dd8

Please sign in to comment.