fix(core): signIn page style (#6582)

This commit is contained in:
JimmFly
2024-04-16 12:56:12 +00:00
parent 3d15e8353b
commit f6fcbd8ea9
3 changed files with 56 additions and 59 deletions

View File

@@ -30,7 +30,6 @@ export const NoPermissionOrNotFound = ({
return ( return (
<AffineOtherPageLayout> <AffineOtherPageLayout>
<div className={notFoundPageContainer} data-testid="not-found"> <div className={notFoundPageContainer} data-testid="not-found">
<div>
{user ? ( {user ? (
<> <>
<div className={wrapper}> <div className={wrapper}>
@@ -61,7 +60,6 @@ export const NoPermissionOrNotFound = ({
signInComponent signInComponent
)} )}
</div> </div>
</div>
</AffineOtherPageLayout> </AffineOtherPageLayout>
); );
}; };
@@ -76,7 +74,6 @@ export const NotFoundPage = ({
return ( return (
<AffineOtherPageLayout> <AffineOtherPageLayout>
<div className={notFoundPageContainer} data-testid="not-found"> <div className={notFoundPageContainer} data-testid="not-found">
<div>
<div className={wrapper}> <div className={wrapper}>
<NotFoundPattern /> <NotFoundPattern />
</div> </div>
@@ -104,7 +101,6 @@ export const NotFoundPage = ({
</div> </div>
) : null} ) : null}
</div> </div>
</div>
</AffineOtherPageLayout> </AffineOtherPageLayout>
); );
}; };

View File

@@ -5,6 +5,7 @@ export const notFoundPageContainer = style({
color: cssVar('textPrimaryColor'), color: cssVar('textPrimaryColor'),
height: '100vh', height: '100vh',
display: 'flex', display: 'flex',
flexDirection: 'column',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
width: '100%', width: '100%',

View File

@@ -92,7 +92,7 @@ export const SignIn = () => {
return ( return (
<SignInPageContainer> <SignInPageContainer>
<div style={{ maxWidth: '400px' }}> <div style={{ maxWidth: '400px', width: '100%' }}>
<AuthPanel <AuthPanel
state={state} state={state}
email={email} email={email}