mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(auth): Hide title when long acct. err present
This commit is contained in:
parent
2b36e9d8a9
commit
f655ce9821
1 changed files with 3 additions and 3 deletions
|
@ -150,6 +150,8 @@ const CreatePageForForm = (FormComponent) => {
|
|||
throw new Error(`Cannot find account type ${accountInfo.type}`);
|
||||
}
|
||||
|
||||
const hideTitle = errorMessage && errorMessage.length > 120;
|
||||
|
||||
return (
|
||||
<div className={`page account-setup ${FormComponent.displayName}`}>
|
||||
<div className="logo-container">
|
||||
|
@ -160,9 +162,7 @@ const CreatePageForForm = (FormComponent) => {
|
|||
className="logo"
|
||||
/>
|
||||
</div>
|
||||
<h2>
|
||||
{FormComponent.titleLabel(AccountType)}
|
||||
</h2>
|
||||
{hideTitle ? <div style={{height: 20}} /> : <h2>{FormComponent.titleLabel(AccountType)}</h2>}
|
||||
<FormErrorMessage
|
||||
message={errorMessage}
|
||||
empty={FormComponent.subtitleLabel(AccountType)}
|
||||
|
|
Loading…
Reference in a new issue