Commit 36e863cd authored by tom's avatar tom

update margins

parent db3ebf36
...@@ -40,8 +40,8 @@ const TokenTransferTable = ({ ...@@ -40,8 +40,8 @@ const TokenTransferTable = ({
{ showTxInfo && <Th width="44px"></Th> } { showTxInfo && <Th width="44px"></Th> }
<Th width="185px">Token</Th> <Th width="185px">Token</Th>
<Th width="160px">Token ID</Th> <Th width="160px">Token ID</Th>
{ showTxInfo && <Th width="30%">Txn hash</Th> } { showTxInfo && <Th width="20%">Txn hash</Th> }
<Th width="40%">From/To</Th> <Th width="50%">From/To</Th>
<Th width="30%" isNumeric>Value</Th> <Th width="30%" isNumeric>Value</Th>
</Tr> </Tr>
</Thead> </Thead>
......
...@@ -76,7 +76,7 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading ...@@ -76,7 +76,7 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading
} }
return ( return (
<Flex className={ className } alignItems="center" columnGap={ 2 }> <Flex className={ className } alignItems="center">
<Entity <Entity
address={ from } address={ from }
isLoading={ isLoading } isLoading={ isLoading }
...@@ -85,7 +85,8 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading ...@@ -85,7 +85,8 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading
noIcon={ noIcon } noIcon={ noIcon }
tokenHash={ tokenHash } tokenHash={ tokenHash }
truncation={ truncation } truncation={ truncation }
maxW={ truncation === 'constant' ? undefined : 'calc(50% - 18px)' } maxW={ truncation === 'constant' ? undefined : 'calc(50% - 20px)' }
mr={ current === from.hash ? 4 : 2 }
/> />
<AddressFromToIcon <AddressFromToIcon
isLoading={ isLoading } isLoading={ isLoading }
...@@ -100,7 +101,8 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading ...@@ -100,7 +101,8 @@ const AddressFromTo = ({ from, to, current, mode: modeProp, className, isLoading
noIcon={ noIcon } noIcon={ noIcon }
tokenHash={ tokenHash } tokenHash={ tokenHash }
truncation={ truncation } truncation={ truncation }
maxW={ truncation === 'constant' ? undefined : 'calc(50% - 18px)' } maxW={ truncation === 'constant' ? undefined : 'calc(50% - 20px)' }
ml={ 3 }
/> />
) : <span>-</span> } ) : <span>-</span> }
</Flex> </Flex>
......
...@@ -160,10 +160,13 @@ const AddressEntry = (props: EntityProps) => { ...@@ -160,10 +160,13 @@ const AddressEntry = (props: EntityProps) => {
_before={ !props.isLoading && context?.highlightedAddress === props.address.hash ? { _before={ !props.isLoading && context?.highlightedAddress === props.address.hash ? {
content: `" "`, content: `" "`,
position: 'absolute', position: 'absolute',
py: 1,
pl: 1,
pr: props.noCopy ? 2 : 0,
top: '-5px', top: '-5px',
left: '-6px', left: '-5px',
width: `calc(100% + ${ props.noCopy ? 10 : 5 }px)`, width: `100%`,
height: 'calc(100% + 8px)', height: '100%',
borderRadius: 'base', borderRadius: 'base',
borderColor: highlightedBorderColor, borderColor: highlightedBorderColor,
borderWidth: '1px', borderWidth: '1px',
......
...@@ -49,7 +49,7 @@ const TxsTable = ({ ...@@ -49,7 +49,7 @@ const TxsTable = ({
<Th width="160px">Type</Th> <Th width="160px">Type</Th>
<Th width="20%">Method</Th> <Th width="20%">Method</Th>
{ showBlockInfo && <Th width="18%">Block</Th> } { showBlockInfo && <Th width="18%">Block</Th> }
<Th width={{ base: '224px', xl: '352px' }}>From/To</Th> <Th width={{ base: '224px', xl: '360px' }}>From/To</Th>
{ !config.UI.views.tx.hiddenFields?.value && ( { !config.UI.views.tx.hiddenFields?.value && (
<Th width="20%" isNumeric> <Th width="20%" isNumeric>
<Link onClick={ sort('value') } display="flex" justifyContent="end"> <Link onClick={ sort('value') } display="flex" justifyContent="end">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment