Skip to content

Commit 108b646

Browse files
committed
swticher allignment
1 parent 741856e commit 108b646

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/sn-controls-react/src/fieldcontrols/switcher.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,17 @@ export const Switcher: React.FC<ReactClientFieldSetting<FieldSetting>> = (props)
137137
required={props.settings.Compulsory}
138138
disabled={props.settings.ReadOnly}>
139139
<Typography component="div" style={{ width: '100%' }}>
140-
<Grid component="label" className={classes.switcherCont} container spacing={1}>
141-
<Grid item>
140+
<Grid
141+
component="label"
142+
className={classes.switcherCont}
143+
container
144+
spacing={1}
145+
alignItems="center"
146+
wrap="wrap">
147+
<Grid item xs>
142148
<strong style={{ fontSize: '17px' }}>{props.settings.DisplayName}</strong> ({props.settings.Name})
143149
</Grid>
144-
<Grid item>
150+
<Grid item style={{ marginLeft: 'auto' }}>
145151
<Switch data-test="edit-switch" size="medium" checked={value} onChange={handleChange} />
146152
</Grid>
147153
</Grid>

0 commit comments

Comments
 (0)