Skip to content

Commit 58c68ce

Browse files
committed
fix address table
1 parent 2881073 commit 58c68ce

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ui/addresses/AddressesTable.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const AddressesTable = ({ items, totalSupply, pageStartIndex, top, isLoading }:
2525
<Thead top={ top }>
2626
<Tr>
2727
<Th width="64px">Rank</Th>
28-
<Th width={ hasPercentage ? '50%' : '60%' }>Address</Th>
29-
<Th width={ hasPercentage ? '20%' : '25%' } isNumeric>{ `Balance ${ currencyUnits.ether }` }</Th>
30-
{ hasPercentage && <Th width="15%" isNumeric>Percentage</Th> }
31-
<Th width="15%" isNumeric>Txn count</Th>
28+
<Th width="50%">Address</Th>
29+
<Th width={ hasPercentage ? '20%' : '25%' } textAlign="center">{ `Balance ${ currencyUnits.ether }` }</Th>
30+
{ hasPercentage && <Th width="15%" textAlign="center">Percentage</Th> }
31+
<Th width="15%" textAlign="center">Txn count</Th>
3232
</Tr>
3333
</Thead>
3434
<Tbody>

ui/addresses/AddressesTableItem.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ const AddressesTableItem = ({
4848
)) : null }
4949
</Flex>
5050
</Td>
51-
<Td isNumeric>
51+
<Td textAlign="center">
5252
<Skeleton isLoaded={ !isLoading } display="inline-block" maxW="100%">
5353
<Text lineHeight="24px" as="span">{ addressBalanceChunks[0] + (addressBalanceChunks[1] ? '.' : '') }</Text>
5454
<Text lineHeight="24px" variant="secondary" as="span">{ addressBalanceChunks[1] }</Text>
5555
</Skeleton>
5656
</Td>
5757
{ hasPercentage && (
58-
<Td isNumeric>
58+
<Td textAlign="center">
5959
<Text lineHeight="24px">{ addressBalance.div(totalSupply).multipliedBy(100).dp(8).toFormat() + '%' }</Text>
6060
</Td>
6161
) }
62-
<Td isNumeric>
62+
<Td textAlign="center">
6363
<Skeleton isLoaded={ !isLoading } display="inline-block" lineHeight="24px">
6464
{ Number(item.transaction_count).toLocaleString() }
6565
</Skeleton>

0 commit comments

Comments
 (0)