diff --git a/src/components/CurrencyInputPanel/FiatValue.tsx b/src/components/CurrencyInputPanel/FiatValue.tsx index b0051c8706..e94d553400 100644 --- a/src/components/CurrencyInputPanel/FiatValue.tsx +++ b/src/components/CurrencyInputPanel/FiatValue.tsx @@ -25,7 +25,7 @@ export function FiatValue({ return ( {fiatValue ? '~' : ''}$ - {' '} + {' '} {priceImpact ? ( ({priceImpact.multiply(-1).toSignificant(3)}%) ) : null} diff --git a/src/components/HoverInlineText/index.tsx b/src/components/HoverInlineText/index.tsx index 67e37e7841..8acf52bf1e 100644 --- a/src/components/HoverInlineText/index.tsx +++ b/src/components/HoverInlineText/index.tsx @@ -2,8 +2,8 @@ import Tooltip from 'components/Tooltip' import React, { useState } from 'react' import styled from 'styled-components' -const TextWrapper = styled.span<{ margin: boolean; link: boolean; fontSize?: string; adjustSize?: boolean }>` - position: relative; +const TextWrapper = styled.span<{ margin: boolean; link?: boolean; fontSize?: string; adjustSize?: boolean }>` + cursor: auto; margin-left: ${({ margin }) => margin && '4px'}; color: ${({ theme, link }) => (link ? theme.blue1 : theme.text1)}; font-size: ${({ fontSize }) => fontSize ?? 'inherit'}; @@ -32,7 +32,7 @@ const HoverInlineText = ({ const [showHover, setShowHover] = useState(false) if (!text) { - return + return } if (text.length > maxCharacters) { @@ -43,7 +43,7 @@ const HoverInlineText = ({ onMouseLeave={() => setShowHover(false)} margin={margin} adjustSize={adjustSize} - link={!!link} + link={link} fontSize={fontSize} {...rest} > @@ -54,7 +54,7 @@ const HoverInlineText = ({ } return ( - + {text} )