fix: Login to X should be centered when team name wraps to newline
This commit is contained in:
@ -4,6 +4,7 @@ import styled from "styled-components";
|
|||||||
const Heading = styled.h1`
|
const Heading = styled.h1`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
${(props) => (props.centered ? "text-align: center;" : "")}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
|
@ -82,7 +82,7 @@ class Login extends React.Component<Props, State> {
|
|||||||
<PageTitle title="Check your email" />
|
<PageTitle title="Check your email" />
|
||||||
<CheckEmailIcon size={38} color="currentColor" />
|
<CheckEmailIcon size={38} color="currentColor" />
|
||||||
|
|
||||||
<Heading>Check your email</Heading>
|
<Heading centered>Check your email</Heading>
|
||||||
<Note>
|
<Note>
|
||||||
A magic sign-in link has been sent to the email{" "}
|
A magic sign-in link has been sent to the email{" "}
|
||||||
<em>{this.state.emailLinkSentTo}</em>, no password needed.
|
<em>{this.state.emailLinkSentTo}</em>, no password needed.
|
||||||
@ -110,9 +110,9 @@ class Login extends React.Component<Props, State> {
|
|||||||
</Logo>
|
</Logo>
|
||||||
|
|
||||||
{isCreate ? (
|
{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")} />
|
<Notices notice={getQueryVariable("notice")} />
|
||||||
|
Reference in New Issue
Block a user