0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

style(console): form and privew content margin-bottom (#2538)

This commit is contained in:
Xiao Yijun 2022-11-28 12:08:57 +08:00 committed by GitHub
parent 3fc18f79b6
commit 1d64ded7eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -21,14 +21,15 @@
.contentTop {
display: flex;
flex: 1;
margin-bottom: _.unit(6);
&.withSubmitActionBar {
margin-bottom: _.unit(3);
}
.form {
flex: 1;
margin: 0 _.unit(3) _.unit(6) 0;
&.withSubmitActionBar {
margin-bottom: _.unit(3);
}
margin-right: _.unit(3);
> :not(:first-child) {
margin-top: _.unit(3);

View file

@ -146,9 +146,9 @@ const SignInExperience = () => {
{!data && error && <div>{`error occurred: ${error.body?.message ?? error.message}`}</div>}
{data && defaultFormData && (
<div className={styles.content}>
<div className={styles.contentTop}>
<div className={classNames(styles.contentTop, isDirty && styles.withSubmitActionBar)}>
<FormProvider {...methods}>
<form className={classNames(styles.form, isDirty && styles.withSubmitActionBar)}>
<form className={styles.form}>
{/* Todo: LOG-4766 Add Constants To Guard Router Path */}
<Branding isActive={tab === 'branding'} />
<SignUpAndSignIn isActive={tab === 'sign-up-and-sign-in'} />