Skip to content

Commit

Permalink
fix two coin icons sizing and position on transaction details row
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jan 17, 2025
1 parent a3256eb commit f74398b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/coin-icon/TwoCoinsIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function TwoCoinsIcon({
under: ParsedAddressAsset;
}) {
const theme = useTheme();
const overSize = size * 0.75;
const underSize = size * 0.67725;
const overSize = size * 0.85;
const underSize = size * 0.75;

return (
<Box style={{ height: size, width: size }}>
Expand Down Expand Up @@ -55,7 +55,7 @@ export function TwoCoinsIcon({
>
<RainbowCoinIcon chainId={over.chainId as ChainId} icon={over?.icon_url} showBadge={false} size={overSize} symbol={over.symbol} />
</Box>
<ChainImage badgeXPosition={-8} badgeYPosition={0} chainId={over.chainId} showBadge={badge} size={16} style={{ zIndex: 1000 }} />
<ChainImage badgeYPosition={0} badgeXPosition={-9} chainId={over.chainId} showBadge={badge} size={20} style={{ zIndex: 1000 }} />
</Box>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ export const TransactionDetailsValueAndFeeSection: React.FC<Props> = ({ transact
}}
/>
</View>
<ChainImage
showBadge={transaction.chainId !== ChainId.mainnet}
chainId={transaction.chainId}
badgeXPosition={-10}
badgeYPosition={10}
/>
<ChainImage showBadge={transaction.chainId !== ChainId.mainnet} chainId={transaction.chainId} badgeYPosition={10} />
</View>
) : (
<RainbowCoinIcon
Expand Down

0 comments on commit f74398b

Please sign in to comment.