Skip to content

Commit

Permalink
Reduce loading text size
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed May 15, 2024
1 parent d3ab90c commit 31a780b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changelog/1937.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reduce loading text size
2 changes: 1 addition & 1 deletion src/app/components/Persist/PersistLoadingGate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function PersistLoadingGate(props: Props) {
<Layer modal background="background-front" responsive={false}>
<Box pad="medium" gap="medium" direction="row" align="center">
<Spinner size="medium" />
<Text size="large">{t('persist.loading', 'Loading')}</Text>
<Text size="medium">{t('persist.loading', 'Loading')}</Text>
</Box>
</Layer>
)}
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/TransactionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ export function TransactionModal() {
{step === TransactionStep.Building && (
<Box direction="row" align="center" gap="medium">
<Spinner size="medium" />
<Text size="large">{t('transaction.step.building', 'Building transaction')}</Text>
<Text size="medium">{t('transaction.step.building', 'Building transaction')}</Text>
</Box>
)}
{step === TransactionStep.Signing && (
<Box direction="row" align="center" gap="medium">
<Spinner size="medium" />
<Text size="large">{t('transaction.step.signing', 'Signing transaction')}</Text>
<Text size="medium">{t('transaction.step.signing', 'Signing transaction')}</Text>
</Box>
)}
{step === TransactionStep.Submitting && (
<Box direction="row" align="center" gap="medium">
<Spinner size="medium" />
<Text size="large">{t('transaction.step.submitting', 'Submitting transaction')}</Text>
<Text size="medium">{t('transaction.step.submitting', 'Submitting transaction')}</Text>
</Box>
)}
</Box>
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/AccountPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export function AccountPage(props: AccountPageProps) {
{active && <TransactionModal />}
{(stake.loading || account.loading) && (
<Layer modal background="background-front" responsive={false}>
<Box pad="medium" gap="medium" direction="row" align="center">
<Box pad="medium" gap="medium" direction="row" align="center" width="max-content">
<Spinner size="medium" />
<Text size="large">{t('account.loading', 'Loading account')}</Text>
<Text size="medium">{t('account.loading', 'Loading account')}</Text>
</Box>
</Layer>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function ImportAccountsSelectionModal(props: ImportAccountsSelectionModal
<Box direction="row" gap="medium" alignContent="center" pad={{ top: 'small' }}>
<Spinner size="medium" />
<Box alignSelf="center">
<Text size="xlarge">
<Text size="medium">
<ImportAccountsStepFormatter step={importAccounts.step} />
</Text>
</Box>
Expand Down

0 comments on commit 31a780b

Please sign in to comment.