Tweak spacing

This commit is contained in:
Manav Rathi
2025-01-17 10:36:59 +05:30
parent c5ab6e7c66
commit 0b95e84143
3 changed files with 8 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ export const AccountsPageFooterWithHost: React.FC<React.PropsWithChildren> = ({
useEffect(() => void customAPIHost().then(setHost), []);
return (
<Stack sx={{ gap: 2 }}>
<Stack sx={{ gap: 3 }}>
<AccountsPageFooter>{children}</AccountsPageFooter>
{host && (
<Typography

View File

@@ -80,7 +80,7 @@ export const LoginContents: React.FC<LoginContentsProps> = ({
}
/>
<AccountsPageFooter>
<Stack sx={{ gap: 4, textAlign: "center" }}>
<Stack sx={{ gap: 3, textAlign: "center" }}>
<LinkButton onClick={onSignUp}>
{t("no_account")}
</LinkButton>

View File

@@ -339,16 +339,15 @@ export const SignUpContents: React.FC<SignUpContentsProps> = ({
<AccountsPageTitle>{t("sign_up")}</AccountsPageTitle>
{form}
<AccountsPageFooter>
<Stack sx={{ gap: 3, textAlign: "center" }}>
<Stack sx={{ gap: 5, textAlign: "center" }}>
<LinkButton onClick={onLogin}>
{t("existing_account")}
</LinkButton>
<Typography
variant="mini"
sx={{ color: "text.faint", minHeight: "16px" }}
>
{host ?? "" /* prevent layout shift with a minHeight */}
</Typography>
{host && (
<Typography variant="mini" sx={{ color: "text.faint" }}>
{host}
</Typography>
)}
</Stack>
</AccountsPageFooter>
</>