π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reduce layout shift
Manav Rathi6521921687e9
diff --git a/web/packages/accounts/components/NewPasswordForm.tsx b/web/packages/accounts/components/NewPasswordForm.tsxindex be430c57ae..3458308d1d 100644--- a/web/packages/accounts/components/NewPasswordForm.tsx+++ b/web/packages/accounts/components/NewPasswordForm.tsx@@ -1,4 +1,4 @@-import { Box, Input, TextField, Typography } from "@mui/material";+import { Input, TextField, Typography } from "@mui/material";import { isWeakPassword } from "ente-accounts/utils/password";import { LoadingButton } from "ente-base/components/mui/LoadingButton";import { ShowHidePasswordInputAdornment } from "ente-base/components/mui/PasswordInputAdornment";@@ -131,29 +131,28 @@ export const NewPasswordForm: React.FC<NewPasswordFormProps> = ({/><PasswordStrengthHint password={formik.values.password} />- <Typography variant="small" sx={{ my: 2 }}>+ <Typography+ variant="small"+ sx={{ color: "text.muted", my: 2, mb: 4 }}+ ><Trans i18nKey={"pick_password_caution"} /></Typography>- <Box sx={{ mt: 4, mb: 2 }}>- <LoadingButton- color="accent"- type="submit"- loading={formik.isSubmitting}- disabled={isWeakPassword(formik.values.password)}- fullWidth- >- {submitButtonTitle}- </LoadingButton>- {formik.isSubmitting && (- <Typography- variant="small"- sx={{ textAlign: "center", mt: 1, color: "text.muted" }}- >- {t("key_generation_in_progress")}- </Typography>- )}- </Box>+ <LoadingButton+ color="accent"+ type="submit"+ loading={formik.isSubmitting}+ disabled={isWeakPassword(formik.values.password)}+ fullWidth+ >+ {submitButtonTitle}+ </LoadingButton>+ <Typography+ variant="small"+ sx={{ textAlign: "center", mt: 1, color: "text.muted" }}+ >+ {formik.isSubmitting ? t("key_generation_in_progress") : ""}+ </Typography></form>);};diff --git a/web/packages/accounts/components/SignUpContents.tsx b/web/packages/accounts/components/SignUpContents.tsxindex 5292e435cb..4bf1860ee9 100644--- a/web/packages/accounts/components/SignUpContents.tsx+++ b/web/packages/accounts/components/SignUpContents.tsx@@ -293,14 +293,12 @@ export const SignUpContents: React.FC<SignUpContentsProps> = ({>{t("create_account")}</LoadingButton>- {formik.isSubmitting && (- <Typography- variant="small"- sx={{ mt: 1, textAlign: "center", color: "text.muted" }}- >- {t("key_generation_in_progress")}- </Typography>- )}+ <Typography+ variant="small"+ sx={{ mt: 1, textAlign: "center", color: "text.muted" }}+ >+ {formik.isSubmitting ? t("key_generation_in_progress") : " "}+ </Typography></form>);@@ -308,7 +306,7 @@ export const SignUpContents: React.FC<SignUpContentsProps> = ({<><AccountsPageTitle>{t("sign_up")}</AccountsPageTitle>{form}- <Divider sx={{ mt: 1.5 }} />+ <Divider sx={{ mt: 1 }} /><AccountsPageFooter><Stack sx={{ gap: 3, textAlign: "center" }}><LinkButton onClick={onLogin}>diff --git a/web/packages/accounts/pages/change-password.tsx b/web/packages/accounts/pages/change-password.tsxindex 7c5029e515..eb159040b4 100644--- a/web/packages/accounts/pages/change-password.tsx+++ b/web/packages/accounts/pages/change-password.tsx@@ -1,3 +1,4 @@+import { Divider } from "@mui/material";import {AccountsPageContents,AccountsPageFooter,@@ -82,11 +83,14 @@ const PageContents: React.FC<PageContentsProps> = ({ user }) => {onSubmit={handleSubmit}/>{(getData("showBackButton")?.value ?? true) && (- <AccountsPageFooter>- <LinkButton onClick={router.back}>- {t("go_back")}- </LinkButton>- </AccountsPageFooter>+ <>+ <Divider sx={{ mt: 1 }} />+ <AccountsPageFooter>+ <LinkButton onClick={router.back}>+ {t("go_back")}+ </LinkButton>+ </AccountsPageFooter>+ </>)}</AccountsPageContents>);diff --git a/web/packages/accounts/pages/generate.tsx b/web/packages/accounts/pages/generate.tsxindex 207f0b93b0..e176bad56f 100644--- a/web/packages/accounts/pages/generate.tsx+++ b/web/packages/accounts/pages/generate.tsx@@ -1,3 +1,4 @@+import { Divider } from "@mui/material";import {AccountsPageContents,AccountsPageFooter,@@ -112,6 +113,7 @@ const Page: React.FC = () => {submitButtonTitle={t("set_password")}onSubmit={handleSubmit}/>+ <Divider sx={{ mt: 1 }} /><AccountsPageFooter><LinkButton onClick={logout}>{t("go_back")}</LinkButton></AccountsPageFooter>