File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
pkg/ui/v1beta1/frontend/src/components Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ const useStyles = makeStyles({
47
47
selectBox : {
48
48
width : 150 ,
49
49
} ,
50
+ checkBox : {
51
+ textAlign : 'center' ,
52
+ } ,
50
53
} ) ;
51
54
52
55
const Objective = props => {
@@ -169,17 +172,16 @@ const Objective = props => {
169
172
</ Grid >
170
173
</ Grid >
171
174
< Grid container alignItems = { 'center' } className = { classes . parameter } >
172
- < Grid item xs = { 12 } sm = { 2 } >
175
+ < Grid item sm = { 2 } >
173
176
< Typography variant = { 'subtitle1' } >
174
177
< Tooltip title = { 'Strategy for extracting metrics to calculate objective' } >
175
178
< HelpOutlineIcon className = { classes . help } color = { 'primary' } />
176
179
</ Tooltip >
177
180
MetricStrategies (optional)
178
181
</ Typography >
179
182
</ Grid >
180
- < Grid item xs = { 12 } sm = { 1 } >
183
+ < Grid item sm = { 1 } className = { classes . checkBox } >
181
184
< FormControlLabel
182
- className = { classes . checkBox }
183
185
control = {
184
186
< Checkbox
185
187
checked = { checkedSetStrategies }
@@ -191,7 +193,7 @@ const Objective = props => {
191
193
/>
192
194
</ Grid >
193
195
{ checkedSetStrategies && (
194
- < Grid item xs = { 12 } sm = { 9 } >
196
+ < Grid item sm = { 9 } >
195
197
{ props . metricStrategies . map ( ( metric , mIndex ) => {
196
198
return (
197
199
< Grid container key = { mIndex } className = { classes . parameter } >
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ const useStyles = makeStyles({
47
47
selectBox : {
48
48
width : 150 ,
49
49
} ,
50
+ checkBox : {
51
+ textAlign : 'center' ,
52
+ } ,
50
53
} ) ;
51
54
52
55
const Objective = props => {
@@ -169,17 +172,16 @@ const Objective = props => {
169
172
</ Grid >
170
173
</ Grid >
171
174
< Grid container alignItems = { 'center' } className = { classes . parameter } >
172
- < Grid item xs = { 12 } sm = { 2 } >
175
+ < Grid item sm = { 2 } >
173
176
< Typography variant = { 'subtitle1' } >
174
177
< Tooltip title = { 'Strategy for extracting metrics to calculate objective' } >
175
178
< HelpOutlineIcon className = { classes . help } color = { 'primary' } />
176
179
</ Tooltip >
177
180
MetricStrategies (optional)
178
181
</ Typography >
179
182
</ Grid >
180
- < Grid item xs = { 12 } sm = { 1 } >
183
+ < Grid item sm = { 1 } className = { classes . checkBox } >
181
184
< FormControlLabel
182
- className = { classes . checkBox }
183
185
control = {
184
186
< Checkbox
185
187
checked = { checkedSetStrategies }
@@ -191,7 +193,7 @@ const Objective = props => {
191
193
/>
192
194
</ Grid >
193
195
{ checkedSetStrategies && (
194
- < Grid item xs = { 12 } sm = { 9 } >
196
+ < Grid item sm = { 9 } >
195
197
{ props . metricStrategies . map ( ( metric , mIndex ) => {
196
198
return (
197
199
< Grid container key = { mIndex } className = { classes . parameter } >
You can’t perform that action at this time.
0 commit comments