From f6fcbd8ea9c9a60118b0fb03e669f751cea78f8b Mon Sep 17 00:00:00 2001 From: JimmFly <447268514@qq.com> Date: Tue, 16 Apr 2024 12:56:12 +0000 Subject: [PATCH] fix(core): signIn page style (#6582) --- .../not-found-page/not-found-page.tsx | 112 +++++++++--------- .../components/not-found-page/styles.css.ts | 1 + packages/frontend/core/src/pages/sign-in.tsx | 2 +- 3 files changed, 56 insertions(+), 59 deletions(-) diff --git a/packages/frontend/component/src/components/not-found-page/not-found-page.tsx b/packages/frontend/component/src/components/not-found-page/not-found-page.tsx index 1646f05432..6e2fd39b47 100644 --- a/packages/frontend/component/src/components/not-found-page/not-found-page.tsx +++ b/packages/frontend/component/src/components/not-found-page/not-found-page.tsx @@ -30,37 +30,35 @@ export const NoPermissionOrNotFound = ({ return (
-
- {user ? ( - <> -
- -
-

{t['404.hint']()}

-
- -
-
- - {user.email} - - - - - -
- - ) : ( - signInComponent - )} -
+ {user ? ( + <> +
+ +
+

{t['404.hint']()}

+
+ +
+
+ + {user.email} + + + + + +
+ + ) : ( + signInComponent + )}
); @@ -76,34 +74,32 @@ export const NotFoundPage = ({ return (
-
-
- -
-

{t['404.hint']()}

-
- -
- - {user ? ( -
- - {user.email} - - - - - -
- ) : null} +
+
+

{t['404.hint']()}

+
+ +
+ + {user ? ( +
+ + {user.email} + + + + + +
+ ) : null}
); diff --git a/packages/frontend/component/src/components/not-found-page/styles.css.ts b/packages/frontend/component/src/components/not-found-page/styles.css.ts index 825d6d6909..2b88791db2 100644 --- a/packages/frontend/component/src/components/not-found-page/styles.css.ts +++ b/packages/frontend/component/src/components/not-found-page/styles.css.ts @@ -5,6 +5,7 @@ export const notFoundPageContainer = style({ color: cssVar('textPrimaryColor'), height: '100vh', display: 'flex', + flexDirection: 'column', alignItems: 'center', justifyContent: 'center', width: '100%', diff --git a/packages/frontend/core/src/pages/sign-in.tsx b/packages/frontend/core/src/pages/sign-in.tsx index bae4df966d..405c9f2831 100644 --- a/packages/frontend/core/src/pages/sign-in.tsx +++ b/packages/frontend/core/src/pages/sign-in.tsx @@ -92,7 +92,7 @@ export const SignIn = () => { return ( -
+