1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

chore: fix the position of circular progress icon

This commit is contained in:
2021-10-19 10:53:09 +00:00
parent a42a1693c2
commit d713d04b20

View File

@@ -67,15 +67,20 @@ const Main = (props: any) => {
return (
<Box component="main" sx={{ flexGrow: 1, p: 3 }}>
<Toolbar />
{isLoading && (
<CircularProgress
style={{ position: 'fixed', left: '50%', top: '50%' }}
/>
)}
<Paper
sx={{ height: '75vh', padding: '10px', overflow: 'auto' }}
sx={{
height: '75vh',
padding: '10px',
overflow: 'auto',
position: 'relative'
}}
elevation={3}
>
{isLoading && (
<CircularProgress
style={{ position: 'absolute', left: '50%', top: '50%' }}
/>
)}
{!isLoading && props?.selectedFilePath !== '' && !editMode && (
<code style={{ whiteSpace: 'break-spaces' }}>{fileContent}</code>
)}