From 0e9f23ed56bb9da6b2b5c7bfc4ead8e8ef656837 Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Wed, 12 May 2021 17:12:16 -0500 Subject: [PATCH] hover text nit --- src/components/CurrencyInputPanel/FiatValue.tsx | 2 +- src/components/HoverInlineText/index.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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} )