diff --git a/src/components/icons/ChainIcon.tsx b/src/components/icons/ChainIcon.tsx index 7b885d2..c553395 100644 --- a/src/components/icons/ChainIcon.tsx +++ b/src/components/icons/ChainIcon.tsx @@ -35,6 +35,7 @@ function _ChainIcon({ size?: number; }) { const imageSrc = (chainId && CHAIN_TO_ICON[chainId]) || QuestionMark; + return (
); diff --git a/src/components/icons/ChainToChain.tsx b/src/components/icons/ChainToChain.tsx index 80074fa..f7bc8a2 100644 --- a/src/components/icons/ChainToChain.tsx +++ b/src/components/icons/ChainToChain.tsx @@ -2,22 +2,31 @@ import Image from 'next/future/image'; import { memo } from 'react'; import ArrowRightIcon from '../../images/icons/arrow-right-short.svg'; +import { useIsMobile } from '../../styles/mediaQueries'; import { ChainIcon } from './ChainIcon'; function _ChainToChain({ originChainId, destinationChainId, - size, + size = 44, + arrowSize = 32, }: { originChainId: number; destinationChainId: number; size?: number; + arrowSize?: number; }) { + const isMobile = useIsMobile(); + if (isMobile) { + size = Math.floor(size * 0.8); + arrowSize = Math.floor(arrowSize * 0.8); + } + return (