Skip to content

Commit

Permalink
design fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminaAiren committed Dec 26, 2023
1 parent f119d86 commit 9d71bad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/pages/Transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const TransactionPageContent = () => {
const titleSecondRow = (
<Box display={{ base: 'block', lg: 'flex' }} alignItems="center" w="100%">
{ hasInterpretationFeature && (
<Flex mr={{ base: 0, lg: 6 }} flexWrap="wrap">
<Flex mr={{ base: 0, lg: 6 }} flexWrap="wrap" alignItems="center">
<TxInterpretation
summary={ txInterpretationQuery.data?.data.summaries[0] }
isLoading={ txInterpretationQuery.isPlaceholderData }
Expand Down
10 changes: 5 additions & 5 deletions ui/tx/interpretation/TxInterpretation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const TxInterpretationElementByType = ({ variable }: { variable?: TxInterpretati
case 'address':
return <AddressEntity address={ value } truncation="constant" sx={{ ':not(:first-child)': { marginLeft: 1 } }}/>;
case 'token':
return <TokenEntity token={ value } onlySymbol width="fit-content" sx={{ ':not(:first-child)': { marginLeft: 1 } }}/>;
return <TokenEntity token={ value } onlySymbol noCopy width="fit-content" sx={{ ':not(:first-child)': { marginLeft: 1 } }} mr={ 2 }/>;
case 'currency': {
let numberString = '';
if (BigNumber(value).isLessThan(0.1)) {
Expand All @@ -42,10 +42,10 @@ const TxInterpretationElementByType = ({ variable }: { variable?: TxInterpretati
}
case 'timestamp':
// timestamp is in unix format
return <Text>{ dayjs(Number(value) * 1000).format('llll') + ' ' }</Text>;
return <Text color="text_secondary">{ dayjs(Number(value) * 1000).format('llll') + ' ' }</Text>;
case 'string':
default: {
return <Text>{ value.toString() + ' ' }</Text>;
return <Text color="text_secondary">{ value.toString() + ' ' }</Text>;
}
}
};
Expand All @@ -67,8 +67,8 @@ const TxInterpretation = ({ summary, isLoading, className }: Props) => {
<Icon as={ actionIcon } boxSize={ 5 } color="text_secondary" mr={ 2 }/>
{ chunks.map((chunk, index) => {
return (
<Flex whiteSpace="pre" key={ chunk + index }>
<Text>{ chunk.trim() + (chunk.trim() && variablesNames[index] ? ' ' : '') }</Text>
<Flex whiteSpace="pre" key={ chunk + index } fontSize="lg" fontWeight={ 500 }>
<Text color="text_secondary">{ chunk.trim() + (chunk.trim() && variablesNames[index] ? ' ' : '') }</Text>
{ index < variablesNames.length && (
variablesNames[index] === NATIVE_COIN_SYMBOL_VAR_NAME ?
<Text>{ config.chain.currency.symbol + ' ' }</Text> :
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d71bad

Please sign in to comment.