Skip to content

Commit

Permalink
style: adjust font sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Nov 16, 2024
1 parent 4a1f321 commit 3d738a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function AccountIcons ({ address, identiconTheme, isSubId, judgements, prefix }:
isSubId={isSubId}
judgement={judgements}
prefix={prefix}
size={40}
size={35}
value={formatted || address}
/>
</Grid>
Expand Down
6 changes: 3 additions & 3 deletions packages/extension-polkagate/src/popup/home/AccountDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Balance = ({ balanceToShow, isBalanceOutdated }: { balanceToShow: Balances
return (
<>
{balanceToShow?.decimal
? <Grid item sx={{ color: isBalanceOutdated ? 'primary.light' : 'text.primary', fontWeight: 500 }}>
? <Grid item sx={{ color: isBalanceOutdated ? 'primary.light' : 'text.primary', fontWeight: 400 }}>
<FormatBalance2
decimalPoint={2}
decimals={[balanceToShow.decimal]}
Expand All @@ -111,7 +111,7 @@ const BalanceRow = ({ address, hideNumbers }: { address: string, hideNumbers: bo
const chainName = useChainName(address);

const { price, priceChainName, priceDate } = useTokenPrice(address);
const isPriceOutdated = useMemo(() => priceDate !== undefined && Date.now() - priceDate > BALANCES_VALIDITY_PERIOD, [priceDate]);
const isPriceOutdated = useMemo(() => priceDate !== undefined && Date.now() - priceDate > BALANCES_VALIDITY_PERIOD, [priceDate]);
const isBalanceOutdated = useMemo(() => balances && Date.now() - balances.date > BALANCES_VALIDITY_PERIOD, [balances]);

const [balanceToShow, setBalanceToShow] = useState<BalancesInfo>();
Expand Down Expand Up @@ -163,7 +163,7 @@ function AccountDetail ({ address, chain, goToAccount, hideNumbers, identity, is
<Grid container direction='column' sx={{ width: '70%' }}>
<Grid container direction='row' item sx={{ lineHeight: '20px' }}>
<Grid item maxWidth='70%' onClick={goToAccount} sx={{ cursor: 'pointer' }}>
<Typography fontSize='24px' overflow='hidden' textOverflow='ellipsis' whiteSpace='nowrap'>
<Typography fontSize='18px' fontWeight={400} mt ='5px' overflow='hidden' textOverflow='ellipsis' whiteSpace='nowrap'>
{identity?.display || name || t('Unknown')}
</Typography>
</Grid>
Expand Down

0 comments on commit 3d738a7

Please sign in to comment.