Move nav bar up
This commit is contained in:
parent
50d63efbce
commit
e6083e5cd5
|
@ -107,18 +107,13 @@ const Block: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<StandardFrame>
|
<StandardFrame>
|
||||||
<StandardSubtitle>
|
<StandardSubtitle>
|
||||||
Block{" "}
|
<div className="flex space-x-1 items-baseline">
|
||||||
<span className="text-base text-gray-500">
|
<span>Block</span>
|
||||||
#{params.blockNumberOrHash}
|
<span className="text-base text-gray-500">
|
||||||
</span>
|
#{params.blockNumberOrHash}
|
||||||
</StandardSubtitle>
|
</span>
|
||||||
{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} />
|
||||||
|
|
Loading…
Reference in New Issue