Skip to content

Commit

Permalink
Update SimpleBackdrop.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jul 19, 2024
1 parent 7fec900 commit caee8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/SimpleBackdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SimpleBackdrop = ({ progress, text }: SimpleBackdropProps) => (
color: '#fff',
zIndex: 1402,
height: window.innerHeight,
marginTop: `${document.documentElement.scrollTop - marginTop}px`
marginTop: `${document.documentElement.scrollTop > 0 ? (document.documentElement.scrollTop - marginTop) : 0}px`
}}
>
{progress && <CircularProgress color="inherit" sx={{ marginRight: 5 }} />}
Expand Down

0 comments on commit caee8d9

Please sign in to comment.