Fix truncation
This commit is contained in:
parent
e80953edfc
commit
31d2983f94
|
@ -20,32 +20,42 @@ const TokenTransferItem: React.FC<TokenTransferItemProps> = ({
|
||||||
<span className="text-gray-500">
|
<span className="text-gray-500">
|
||||||
<FontAwesomeIcon icon={faCaretRight} size="1x" />
|
<FontAwesomeIcon icon={faCaretRight} size="1x" />
|
||||||
</span>
|
</span>
|
||||||
<span className="font-bold">From</span>
|
<div className="grid grid-cols-5">
|
||||||
<AddressOrENSName address={t.from} />
|
<div className="flex space-x-2">
|
||||||
<span className="font-bold">To</span>
|
<span className="font-bold">From</span>
|
||||||
<AddressOrENSName address={t.to} />
|
<AddressOrENSName address={t.from} />
|
||||||
<span className="font-bold">For</span>
|
</div>
|
||||||
<span>
|
<div className="flex space-x-2">
|
||||||
<FormattedBalance
|
<span className="font-bold">To</span>
|
||||||
value={t.value}
|
<AddressOrENSName address={t.to} />
|
||||||
decimals={tokenMetas[t.token].decimals}
|
</div>
|
||||||
/>
|
<div className="col-span-3 flex space-x-2">
|
||||||
</span>
|
<span className="font-bold">For</span>
|
||||||
<span className="flex space-x-1 items-baseline truncate">
|
<span>
|
||||||
{tokenMetas[t.token] ? (
|
<FormattedBalance
|
||||||
<>
|
value={t.value}
|
||||||
<div className="self-center">
|
decimals={tokenMetas[t.token].decimals}
|
||||||
<TokenLogo address={t.token} name={tokenMetas[t.token].name} />
|
|
||||||
</div>
|
|
||||||
<AddressLink
|
|
||||||
address={t.token}
|
|
||||||
text={`${tokenMetas[t.token].name} (${tokenMetas[t.token].symbol})`}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</span>
|
||||||
) : (
|
<span className="flex space-x-1 items-baseline truncate">
|
||||||
<AddressOrENSName address={t.token} />
|
{tokenMetas[t.token] ? (
|
||||||
)}
|
<>
|
||||||
</span>
|
<div className="self-center">
|
||||||
|
<TokenLogo address={t.token} name={tokenMetas[t.token].name} />
|
||||||
|
</div>
|
||||||
|
<AddressLink
|
||||||
|
address={t.token}
|
||||||
|
text={`${tokenMetas[t.token].name} (${
|
||||||
|
tokenMetas[t.token].symbol
|
||||||
|
})`}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<AddressOrENSName address={t.token} />
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue