Skip to content

Commit 124e592

Browse files
committed
492: Fix spacing issues
1 parent e6d4456 commit 124e592

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

src/client/src/pages/Admin/Admin.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,15 @@ export default function Admin(props) {
119119
</Backdrop>
120120
: <Paper elevation={1} style={{"padding": "2em"}}>
121121
{statistics === 'Running' && <Alert severity="info">Execution is in Progress...</Alert>}
122-
123-
<Grid container item spacing={5} direction="row" style={{padding: 20}}>
122+
<Box
123+
display="flex"
124+
justifyContent="space-between"
125+
flexDirection="row"
126+
style={{ padding: 20 }}
127+
>
124128
<UploadBox filesInput={filesInput} handleUpload={handleUpload} lastUploads={lastUploads} />
125129
<AnalysisBox handleExecute={handleExecute} lastExecution={lastExecution} statistics={statistics} />
126-
</Grid>
130+
</Box>
127131
</Paper>
128132
}
129133
</Container>

src/client/src/pages/Admin/Components/AnalysisBox.jsx

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,28 @@ export default function AnalysisBox(props) {
1414

1515
return (
1616
<Grid container item direction="column" spacing={3} sm={6}>
17-
<Grid item>
18-
<Paper>
19-
<CardContent>
20-
<Typography variant="h5" style={{ paddingBottom: 5 }}>
21-
Run New Analysis
22-
</Typography>
23-
<form onSubmit={handleExecute}>
24-
<Button
25-
type="submit"
26-
variant="contained"
27-
color="primary"
28-
>
29-
Run Data Analysis
30-
</Button>
31-
</form>
32-
</CardContent>
33-
{!_.isEmpty(statistics) && (
34-
<AnalysisTable
35-
lastExecution={lastExecution}
36-
tableData={statistics}
37-
/>
38-
)}
39-
</Paper>
40-
</Grid>
17+
<Paper>
18+
<CardContent>
19+
<Typography variant="h5" style={{ paddingBottom: 5 }}>
20+
Run New Analysis
21+
</Typography>
22+
<form onSubmit={handleExecute}>
23+
<Button
24+
type="submit"
25+
variant="contained"
26+
color="primary"
27+
>
28+
Run Data Analysis
29+
</Button>
30+
</form>
31+
</CardContent>
32+
{!_.isEmpty(statistics) && (
33+
<AnalysisTable
34+
lastExecution={lastExecution}
35+
tableData={statistics}
36+
/>
37+
)}
38+
</Paper>
4139
</Grid>
4240
);
4341
}

0 commit comments

Comments
 (0)