fixes vertical alignment of forms with switches (#122)

This commit is contained in:
Sarah Rambacher 2020-09-29 02:34:27 -04:00 committed by GitHub
parent 32f5aa0e6f
commit 457729ba75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -115,6 +115,7 @@ export const NewClientScopeForm = () => {
/> />
</FormGroup> </FormGroup>
<FormGroup <FormGroup
hasNoPaddingTop
label={ label={
<> <>
{t("displayOnConsentScreen")}{" "} {t("displayOnConsentScreen")}{" "}

View file

@ -18,7 +18,11 @@ export const CapabilityConfig = ({ form }: CapabilityConfigProps) => {
const { t } = useTranslation("clients"); const { t } = useTranslation("clients");
return ( return (
<Form isHorizontal> <Form isHorizontal>
<FormGroup label={t("clientAuthentication")} fieldId="kc-authentication"> <FormGroup
hasNoPaddingTop
label={t("clientAuthentication")}
fieldId="kc-authentication"
>
<Controller <Controller
name="publicClient" name="publicClient"
defaultValue={false} defaultValue={false}
@ -35,7 +39,11 @@ export const CapabilityConfig = ({ form }: CapabilityConfigProps) => {
)} )}
/> />
</FormGroup> </FormGroup>
<FormGroup label={t("clientAuthorization")} fieldId="kc-authorization"> <FormGroup
hasNoPaddingTop
label={t("clientAuthorization")}
fieldId="kc-authorization"
>
<Controller <Controller
name="authorizationServicesEnabled" name="authorizationServicesEnabled"
defaultValue={false} defaultValue={false}
@ -52,7 +60,11 @@ export const CapabilityConfig = ({ form }: CapabilityConfigProps) => {
)} )}
/> />
</FormGroup> </FormGroup>
<FormGroup label={t("authenticationFlow")} fieldId="kc-flow"> <FormGroup
hasNoPaddingTop
label={t("authenticationFlow")}
fieldId="kc-flow"
>
<Grid> <Grid>
<GridItem lg={4} sm={6}> <GridItem lg={4} sm={6}>
<Controller <Controller