mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Added containerStyle class to make it responsive
This commit is contained in:
@@ -96,6 +96,11 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
top: theme.spacing(1),
|
||||
color: theme.palette.grey[500],
|
||||
},
|
||||
containerStyle: {
|
||||
["@media (min-width: 1280px)"]: {
|
||||
maxWidth: "100%"
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
@@ -272,7 +277,7 @@ export const StudyDetail: FC = () => {
|
||||
</MuiDialogContent>
|
||||
</Dialog>
|
||||
<AppBar position="static">
|
||||
<Container>
|
||||
<Container className={classes.containerStyle}>
|
||||
<Toolbar>
|
||||
<Typography variant="h6">{APP_BAR_TITLE}</Typography>
|
||||
<div className={classes.grow} />
|
||||
@@ -322,7 +327,7 @@ export const StudyDetail: FC = () => {
|
||||
</Toolbar>
|
||||
</Container>
|
||||
</AppBar>
|
||||
<Container>
|
||||
<Container className={classes.containerStyle}>
|
||||
<div>
|
||||
<Paper className={classes.paper}>
|
||||
<Typography variant="h6">{title}</Typography>
|
||||
|
||||
@@ -43,6 +43,11 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
objectiveButton: {
|
||||
marginRight: theme.spacing(1),
|
||||
},
|
||||
containerStyle: {
|
||||
["@media (min-width: 1280px)"]: {
|
||||
maxWidth: "100%"
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
@@ -216,7 +221,7 @@ export const StudyList: FC = () => {
|
||||
return (
|
||||
<div>
|
||||
<AppBar position="static">
|
||||
<Container>
|
||||
<Container className={classes.containerStyle}>
|
||||
<Toolbar>
|
||||
<Typography variant="h6">{APP_BAR_TITLE}</Typography>
|
||||
<div className={classes.grow} />
|
||||
@@ -277,7 +282,7 @@ export const StudyList: FC = () => {
|
||||
</Toolbar>
|
||||
</Container>
|
||||
</AppBar>
|
||||
<Container>
|
||||
<Container className={classes.containerStyle}>
|
||||
<Card className={classes.card}>
|
||||
<DataGrid<StudySummary>
|
||||
columns={columns}
|
||||
|
||||
Generated
+17
-13358
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user