Move nav bar up

This commit is contained in:
Willian Mitsuda 2021-07-23 19:20:49 -03:00
parent 50d63efbce
commit e6083e5cd5
1 changed files with 16 additions and 12 deletions

View File

@ -107,18 +107,13 @@ const Block: React.FC = () => {
return ( return (
<StandardFrame> <StandardFrame>
<StandardSubtitle> <StandardSubtitle>
Block{" "} <div className="flex space-x-1 items-baseline">
<span>Block</span>
<span className="text-base text-gray-500"> <span className="text-base text-gray-500">
#{params.blockNumberOrHash} #{params.blockNumberOrHash}
</span> </span>
</StandardSubtitle>
{block && ( {block && (
<ContentFrame> <div className="pl-2 self-center flex space-x-1">
<InfoRow title="Block Height">
<div className="flex space-x-1 items-baseline">
<span className="font-bold mr-1">
{ethers.utils.commify(block.number)}
</span>
<NavButton <NavButton
blockNum={block.number - 1} blockNum={block.number - 1}
disabled={block.number === 0} disabled={block.number === 0}
@ -145,6 +140,15 @@ const Block: React.FC = () => {
<FontAwesomeIcon icon={faChevronRight} /> <FontAwesomeIcon icon={faChevronRight} />
</NavButton> </NavButton>
</div> </div>
)}
</div>
</StandardSubtitle>
{block && (
<ContentFrame>
<InfoRow title="Block Height">
<span className="font-bold">
{ethers.utils.commify(block.number)}
</span>
</InfoRow> </InfoRow>
<InfoRow title="Timestamp"> <InfoRow title="Timestamp">
<Timestamp value={block.timestamp} /> <Timestamp value={block.timestamp} />