@@ -8,7 +8,7 @@ import * as React from 'react'
88import { decodeFunctionData , isAddressEqual } from 'viem'
99import { Address } from '#comps/Address'
1010import { Amount } from '#comps/Amount'
11- import { Midcut } from '#comps/Midcut '
11+ import { Midcut } from 'midcut '
1212import { TokenIcon } from '#comps/TokenIcon'
1313import { cx } from '#lib/css'
1414import { extractContractAbi , getContractAbi } from '#lib/domain/contracts.ts'
@@ -84,12 +84,15 @@ function ContractCallPart(props: {
8484 < >
8585 < span className = "text-accent items-end whitespace-nowrap" > { fnName } </ span >
8686 < span className = "text-secondary" > on</ span >
87- < Address
88- address = { address }
89- search = { { tab : 'contract' } }
90- title = { address }
91- className = "whitespace-nowrap"
92- />
87+ < span className = "min-w-[11ch] basis-[11ch] max-w-full flex-1 overflow-hidden" >
88+ < Address
89+ address = { address }
90+ chars = { 4 }
91+ search = { { tab : 'contract' } }
92+ title = { address }
93+ className = "whitespace-nowrap w-full max-w-full"
94+ />
95+ </ span >
9396 </ >
9497 )
9598}
@@ -130,11 +133,14 @@ export namespace TxEventDescription {
130133 if ( ! OxAddress . validate ( part . value ) )
131134 return < span className = "text-tertiary" > { String ( part . value ) } </ span >
132135 return (
133- < Address
134- address = { part . value }
135- className = "text-accent items-end press-down whitespace-nowrap"
136- self = { seenAs ? isAddressEqual ( part . value , seenAs ) : false }
137- />
136+ < span className = "min-w-[11ch] basis-[11ch] max-w-full flex-1 overflow-hidden" >
137+ < Address
138+ address = { part . value }
139+ chars = { 4 }
140+ className = "text-accent items-end press-down whitespace-nowrap w-full max-w-full"
141+ self = { seenAs ? isAddressEqual ( part . value , seenAs ) : false }
142+ />
143+ </ span >
138144 )
139145 }
140146 case 'action' : {
0 commit comments