diff --git a/.changeset/selfish-crews-tie.md b/.changeset/selfish-crews-tie.md new file mode 100644 index 00000000..0946fd7c --- /dev/null +++ b/.changeset/selfish-crews-tie.md @@ -0,0 +1,5 @@ +--- +'@supabase/auth-ui-react': patch +--- + +Fix view layout alignment diff --git a/packages/react/src/components/Auth/Auth.tsx b/packages/react/src/components/Auth/Auth.tsx index 6c5234bc..af9a2fe1 100644 --- a/packages/react/src/components/Auth/Auth.tsx +++ b/packages/react/src/components/Auth/Auth.tsx @@ -168,14 +168,16 @@ function Auth({ ) case VIEWS.FORGOTTEN_PASSWORD: return ( - + + + ) case VIEWS.MAGIC_LINK: diff --git a/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx b/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx index 68b574b4..8d1e4f86 100644 --- a/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx +++ b/packages/react/src/components/Auth/interfaces/ForgottenPassword.tsx @@ -48,49 +48,51 @@ function ForgottenPassword({ return (
- -
- - ) => - setEmail(e.target.value) - } - appearance={appearance} - /> -
- - {showLinks && ( - ) => { - e.preventDefault() - setAuthView(VIEWS.SIGN_IN) - }} + + +
+ + ) => + setEmail(e.target.value) + } + appearance={appearance} + /> +
+ + {showLinks && ( + ) => { + e.preventDefault() + setAuthView(VIEWS.SIGN_IN) + }} + appearance={appearance} + > + {i18n?.sign_in?.link_text} + + )} + {message && {message}} + {error && ( + + {error} + + )} +
)