Skip to content

Commit 30a9c5f

Browse files
committed
fix justify content of smart view form
1 parent 32c4e7e commit 30a9c5f

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

src/cloud/components/Modal/contents/SmartView/SmartViewForm.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Button, {
44
LoadingButton,
55
} from '../../../../../design/components/atoms/Button'
66
import ButtonGroup from '../../../../../design/components/atoms/ButtonGroup'
7+
import Flexbox from '../../../../../design/components/atoms/Flexbox'
78
import Switch from '../../../../../design/components/atoms/Switch'
89
import Form from '../../../../../design/components/molecules/Form'
910
import FormRow from '../../../../../design/components/molecules/Form/templates/FormRow'
@@ -120,16 +121,18 @@ const SmartViewForm = ({
120121
</div>
121122
</FormRowItem>
122123
<FormRowItem className='form__row__item--shrink'>
123-
<Switch
124-
id='shared-custom-switch'
125-
checked={makingPrivate}
126-
onChange={(checked) => {
127-
setMakingPrivate(checked)
128-
}}
129-
height={20}
130-
width={30}
131-
handleSize={14}
132-
/>
124+
<Flexbox justifyContent='flex-end'>
125+
<Switch
126+
id='shared-custom-switch'
127+
checked={makingPrivate}
128+
onChange={(checked) => {
129+
setMakingPrivate(checked)
130+
}}
131+
height={20}
132+
width={30}
133+
handleSize={14}
134+
/>
135+
</Flexbox>
133136
</FormRowItem>
134137
</FormRow>
135138
</>

0 commit comments

Comments
 (0)