entry details will better fit in to split view

pull/117/head
Tim Pechersky 2021-08-18 14:53:45 +02:00
rodzic 6d3e2cf913
commit 60db6708b4
2 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -36,17 +36,16 @@ const SteamEntryDetails = () => {
>
<HStack id="EntryHeader" width="100%" m={0}>
<Heading
overflow="hidden"
width={entry?.context_url ? "calc(100% - 28px)" : "100%"}
minH="36px"
style={{ marginLeft: "0" }}
m={0}
p={0}
fontWeight="600"
fontSize="1.5rem"
fontSize="md"
textAlign="left"
>
{entry && entry.tx.hash}
{entry && `Hash: ${entry.tx.hash}`}
</Heading>
</HStack>
</Skeleton>

Wyświetl plik

@ -58,25 +58,29 @@ const TxInfo = (props) => {
return (
<Box boxShadow="xs" p="6" rounded="md">
<StatGroup>
<Stat>
<Stat px={2}>
<StatLabel>Value</StatLabel>
<StatNumber>{toEth(transaction.tx.value)} eth</StatNumber>
<StatNumber fontSize="md">
{toEth(transaction.tx.value)} eth
</StatNumber>
<StatHelpText>amount of ETH to transfer</StatHelpText>
</Stat>
<Stat>
<StatLabel>Gas limit</StatLabel>
<StatNumber>{transaction.tx.gas}</StatNumber>
<StatNumber fontSize="md">{transaction.tx.gas}</StatNumber>
<StatHelpText>Maximum amount of gas </StatHelpText>
<StatHelpText>provided for the transaction</StatHelpText>
</Stat>
<Stat>
<StatLabel>Gas price</StatLabel>
<StatNumber>{toEth(transaction.tx.gasPrice)} eth</StatNumber>
<StatNumber fontSize="md">
{toEth(transaction.tx.gasPrice)} eth
</StatNumber>
<StatHelpText>the fee the sender pays per unit of gas</StatHelpText>
</Stat>
</StatGroup>
<Table variant="simple">
<Table variant="simple" size="sm">
<Tbody>
{Object.keys(transaction.tx)
.filter(dont_display)
@ -85,7 +89,7 @@ const TxInfo = (props) => {
transaction.tx[key] != undefined && (
<Tr key={key}>
<Td>{key}</Td>
<Td>{transaction.tx[key]}</Td>
<Td wordBreak="break-all">{transaction.tx[key]}</Td>
</Tr>
)
)}