From 41d39d98e1b46cd3fc9a8d028bb2626e2f1d1631 Mon Sep 17 00:00:00 2001 From: No-Cash-7970 Date: Mon, 4 Dec 2023 12:51:11 -0800 Subject: [PATCH] refactor(app): make the sizes of images based on font size This allows the images to scale better if the text is enlarged. All the images are SVG so they can scale to larger sizes with becoming pixelated. --- src/app/[lang]/[...notFound]/page.tsx | 2 +- .../NavBar/Settings/ConnectWallet.tsx | 30 +++++++++-------- .../[lang]/txn/sign/components/SignTxn.tsx | 33 +++++++++++-------- 3 files changed, 37 insertions(+), 28 deletions(-) diff --git a/src/app/[lang]/[...notFound]/page.tsx b/src/app/[lang]/[...notFound]/page.tsx index 24020b2..9932b6e 100644 --- a/src/app/[lang]/[...notFound]/page.tsx +++ b/src/app/[lang]/[...notFound]/page.tsx @@ -35,7 +35,7 @@ export default function NotFound({ params: { lang } }: { {t('page_not_found.quack')}
- {t('page_not_found.duck_img_alt')} + {t('page_not_found.duck_img_alt')}
diff --git a/src/app/[lang]/components/NavBar/Settings/ConnectWallet.tsx b/src/app/[lang]/components/NavBar/Settings/ConnectWallet.tsx index c5a2889..8661774 100644 --- a/src/app/[lang]/components/NavBar/Settings/ConnectWallet.tsx +++ b/src/app/[lang]/components/NavBar/Settings/ConnectWallet.tsx @@ -41,12 +41,14 @@ export default function ConnectWallet({ t }: { t: TFunction }) { providers?.map(provider => (
  • - - {t('wallet.provider_icon_alt', + + + {t('wallet.provider_icon_alt', +
    {t('wallet.providers.' + provider.metadata.id)}
    @@ -67,13 +69,15 @@ export default function ConnectWallet({ t }: { t: TFunction }) { {!!activeAccount && walletClient &&
    - {t('wallet.provider_icon_alt', - {t('wallet.is_connected', {address: activeAccount.address})} + + {t('wallet.provider_icon_alt', + + + {t('wallet.is_connected', {address: activeAccount.address})} +
    - {walletClient && {t('wallet.provider_icon_alt',} - {t('wallet.is_connected', {address: activeAccount.address})} + {walletClient && + + {t('wallet.provider_icon_alt', + + } + + {t('wallet.is_connected', {address: activeAccount.address})} +