Skip to content

Commit 22d0811

Browse files
Merge pull request #2176 from Web3Auth/feat/ui-footer-and-modal-height
Don't change modal size unless contents are longer the modal height
2 parents 3c9c900 + 08c962d commit 22d0811

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/modal/src/ui/components/Footer/Footer.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Footer({ privacyPolicy, termsOfService }: FooterProps) {
1010
const [t] = useTranslation(undefined, { i18n });
1111

1212
return (
13-
<div className="w3a--mx-auto w3a--mt-auto w3a--flex w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4 w3a--pt-6">
13+
<div className="w3a--mx-auto w3a--mt-auto w3a--flex w3a--flex-col w3a--items-center w3a--justify-center w3a--gap-y-4 w3a--pt-5">
1414
{(privacyPolicy || termsOfService) && (
1515
<p className="w3a--mx-auto w3a--w-4/5 w3a--text-center w3a--text-xs w3a--text-app-gray-500 dark:w3a--text-app-gray-400">
1616
{t("modal.footer.by-signing-in")}{" "}
@@ -30,18 +30,17 @@ function Footer({ privacyPolicy, termsOfService }: FooterProps) {
3030
</p>
3131
)}
3232
<div className="w3a--flex w3a--items-center w3a--justify-center w3a--gap-2">
33-
<div className="w3a--text-xs w3a--text-app-gray-300 dark:w3a--text-app-gray-500">{t("modal.footer.message-new")}</div>
3433
<img
35-
height="16"
36-
src="https://images.web3auth.io/web3auth-footer-logo-light.svg"
34+
height="36"
35+
src="https://images.web3auth.io/metamask-footer-logo-light.svg"
3736
alt="Web3Auth Logo Light"
38-
className="w3a--block w3a--h-4 dark:w3a--hidden"
37+
className="w3a--block w3a--h-9 dark:w3a--hidden"
3938
/>
4039
<img
41-
height="16"
42-
src="https://images.web3auth.io/web3auth-footer-logo-dark.svg"
40+
height="36"
41+
src="https://images.web3auth.io/metamask-footer-logo-dark.svg"
4342
alt="Web3Auth Logo Dark"
44-
className="w3a--hidden w3a--h-4 dark:w3a--block"
43+
className="w3a--hidden w3a--h-9 dark:w3a--block"
4544
/>
4645
</div>
4746
</div>

packages/modal/src/ui/components/Root/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function Root(props: RootProps) {
361361

362362
// Loader Screen
363363
if (modalState.status !== MODAL_STATUS.INITIALIZED) {
364-
return "642px";
364+
return "530px";
365365
}
366366

367367
// Wallet Details Screen

0 commit comments

Comments
 (0)