Skip to content

Commit

Permalink
fix tables length
Browse files Browse the repository at this point in the history
  • Loading branch information
josepchetrit12 committed Mar 4, 2025
1 parent 876c93b commit 74d3758
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/components/ResultCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ export default function ResultCard({ result, isLoading }: ResultCardProps) {
className="px-3 py-2 break-all"
title={param.value}
>
{param.value}
{typeof param.value === 'string' && param.value.startsWith('0x') && param.value.length > 10
? `${param.value.substring(0, 6)}...${param.value.substring(param.value.length - 4)}`
: param.value}
</td>
<td className="px-3 py-2">
<CopyButton
Expand Down Expand Up @@ -221,7 +223,9 @@ export default function ResultCard({ result, isLoading }: ResultCardProps) {
className="px-3 py-2 max-w-[200px] overflow-hidden text-ellipsis"
title={param.value}
>
{param.value}
{typeof param.value === 'string' && param.value.startsWith('0x') && param.value.length > 10
? `${param.value.substring(0, 6)}...${param.value.substring(param.value.length - 4)}`
: param.value}
</td>
<td className="px-3 py-2">
<CopyButton
Expand Down

0 comments on commit 74d3758

Please sign in to comment.