mirror of
https://github.com/sasjs/server.git
synced 2026-01-17 02:40:05 +00:00
chore: fix the position of circular progress icon
This commit is contained in:
@@ -67,15 +67,20 @@ const Main = (props: any) => {
|
|||||||
return (
|
return (
|
||||||
<Box component="main" sx={{ flexGrow: 1, p: 3 }}>
|
<Box component="main" sx={{ flexGrow: 1, p: 3 }}>
|
||||||
<Toolbar />
|
<Toolbar />
|
||||||
{isLoading && (
|
|
||||||
<CircularProgress
|
|
||||||
style={{ position: 'fixed', left: '50%', top: '50%' }}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<Paper
|
<Paper
|
||||||
sx={{ height: '75vh', padding: '10px', overflow: 'auto' }}
|
sx={{
|
||||||
|
height: '75vh',
|
||||||
|
padding: '10px',
|
||||||
|
overflow: 'auto',
|
||||||
|
position: 'relative'
|
||||||
|
}}
|
||||||
elevation={3}
|
elevation={3}
|
||||||
>
|
>
|
||||||
|
{isLoading && (
|
||||||
|
<CircularProgress
|
||||||
|
style={{ position: 'absolute', left: '50%', top: '50%' }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{!isLoading && props?.selectedFilePath !== '' && !editMode && (
|
{!isLoading && props?.selectedFilePath !== '' && !editMode && (
|
||||||
<code style={{ whiteSpace: 'break-spaces' }}>{fileContent}</code>
|
<code style={{ whiteSpace: 'break-spaces' }}>{fileContent}</code>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user