fix: Login to X should be centered when team name wraps to newline

This commit is contained in:
Tom Moor
2020-08-12 14:05:32 -07:00
parent 11f7e3a060
commit dbe8a10702
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import styled from "styled-components";
const Heading = styled.h1`
display: flex;
align-items: center;
${(props) => (props.centered ? "text-align: center;" : "")}
svg {
margin-left: -6px;

View File

@ -82,7 +82,7 @@ class Login extends React.Component<Props, State> {
<PageTitle title="Check your email" />
<CheckEmailIcon size={38} color="currentColor" />
<Heading>Check your email</Heading>
<Heading centered>Check your email</Heading>
<Note>
A magic sign-in link has been sent to the email{" "}
<em>{this.state.emailLinkSentTo}</em>, no password needed.
@ -110,9 +110,9 @@ class Login extends React.Component<Props, State> {
</Logo>
{isCreate ? (
<Heading>Create an account</Heading>
<Heading centered>Create an account</Heading>
) : (
<Heading>Login to {config.name || "Outline"}</Heading>
<Heading centered>Login to {config.name || "Outline"}</Heading>
)}
<Notices notice={getQueryVariable("notice")} />