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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user