Skip to content

Commit e7f8f37

Browse files
committed
Add checkbox style
1 parent 85c92b6 commit e7f8f37

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

pkg/ui/v1beta1/frontend/src/components/HP/Create/Params/Objective.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const useStyles = makeStyles({
4747
selectBox: {
4848
width: 150,
4949
},
50+
checkBox: {
51+
textAlign: 'center',
52+
},
5053
});
5154

5255
const Objective = props => {
@@ -169,17 +172,16 @@ const Objective = props => {
169172
</Grid>
170173
</Grid>
171174
<Grid container alignItems={'center'} className={classes.parameter}>
172-
<Grid item xs={12} sm={2}>
175+
<Grid item sm={2}>
173176
<Typography variant={'subtitle1'}>
174177
<Tooltip title={'Strategy for extracting metrics to calculate objective'}>
175178
<HelpOutlineIcon className={classes.help} color={'primary'} />
176179
</Tooltip>
177180
MetricStrategies (optional)
178181
</Typography>
179182
</Grid>
180-
<Grid item xs={12} sm={1}>
183+
<Grid item sm={1} className={classes.checkBox}>
181184
<FormControlLabel
182-
className={classes.checkBox}
183185
control={
184186
<Checkbox
185187
checked={checkedSetStrategies}
@@ -191,7 +193,7 @@ const Objective = props => {
191193
/>
192194
</Grid>
193195
{checkedSetStrategies && (
194-
<Grid item xs={12} sm={9}>
196+
<Grid item sm={9}>
195197
{props.metricStrategies.map((metric, mIndex) => {
196198
return (
197199
<Grid container key={mIndex} className={classes.parameter}>

pkg/ui/v1beta1/frontend/src/components/NAS/Create/Params/Objective.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const useStyles = makeStyles({
4747
selectBox: {
4848
width: 150,
4949
},
50+
checkBox: {
51+
textAlign: 'center',
52+
},
5053
});
5154

5255
const Objective = props => {
@@ -169,17 +172,16 @@ const Objective = props => {
169172
</Grid>
170173
</Grid>
171174
<Grid container alignItems={'center'} className={classes.parameter}>
172-
<Grid item xs={12} sm={2}>
175+
<Grid item sm={2}>
173176
<Typography variant={'subtitle1'}>
174177
<Tooltip title={'Strategy for extracting metrics to calculate objective'}>
175178
<HelpOutlineIcon className={classes.help} color={'primary'} />
176179
</Tooltip>
177180
MetricStrategies (optional)
178181
</Typography>
179182
</Grid>
180-
<Grid item xs={12} sm={1}>
183+
<Grid item sm={1} className={classes.checkBox}>
181184
<FormControlLabel
182-
className={classes.checkBox}
183185
control={
184186
<Checkbox
185187
checked={checkedSetStrategies}
@@ -191,7 +193,7 @@ const Objective = props => {
191193
/>
192194
</Grid>
193195
{checkedSetStrategies && (
194-
<Grid item xs={12} sm={9}>
196+
<Grid item sm={9}>
195197
{props.metricStrategies.map((metric, mIndex) => {
196198
return (
197199
<Grid container key={mIndex} className={classes.parameter}>

0 commit comments

Comments
 (0)