diff --git a/apps/explorer/src/comps/AccountCard.tsx b/apps/explorer/src/comps/AccountCard.tsx index b33d59cb4..202d0fe1f 100644 --- a/apps/explorer/src/comps/AccountCard.tsx +++ b/apps/explorer/src/comps/AccountCard.tsx @@ -72,7 +72,8 @@ export function AccountCard(props: AccountCard.Props) { )} -

+ {/* 42 chars / 2 lines = 21ch */} +

{address}

, diff --git a/apps/explorer/src/comps/BlockCard.tsx b/apps/explorer/src/comps/BlockCard.tsx index 80879d462..fbae24495 100644 --- a/apps/explorer/src/comps/BlockCard.tsx +++ b/apps/explorer/src/comps/BlockCard.tsx @@ -107,7 +107,7 @@ export function BlockCard(props: BlockCard.Props) { /> , -
+
{hash && (
-
+ {/* the 15px font size needs to match the block number wrapper font size to make sure they align */} + {/* 22 chars/line * (1ch + 1px tracking) */} +
{hash}
@@ -263,11 +265,11 @@ export namespace BlockCard { export function BlockNumber(props: BlockNumber.Props) { const { value } = props - const str = String(value).padStart(14, '0') + const str = String(value).padStart(15, '0') const zerosEnd = str.match(/^0*/)?.[0].length ?? 0 return ( - // the 14px font size is used to set the same width as the block hash -
+ // the 15px font size is used to set the same width as the block hash +
{str.split('').map((char, index) => (
-

+ {/* 66 chars / 3 lines = 22ch */} +

{hash}

, diff --git a/apps/explorer/src/routes/_layout/demo/address.tsx b/apps/explorer/src/routes/_layout/demo/address.tsx index acb38f77e..6961b5782 100644 --- a/apps/explorer/src/routes/_layout/demo/address.tsx +++ b/apps/explorer/src/routes/_layout/demo/address.tsx @@ -896,7 +896,7 @@ function Component() { )}
-

+

{accountAddress}

, diff --git a/apps/explorer/src/routes/_layout/token/$address.tsx b/apps/explorer/src/routes/_layout/token/$address.tsx index 420e4c24b..93d6e107d 100644 --- a/apps/explorer/src/routes/_layout/token/$address.tsx +++ b/apps/explorer/src/routes/_layout/token/$address.tsx @@ -353,7 +353,7 @@ function TokenCard(props: { )}
-

+

{address}

,