1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-03-24 20:15:49 +00:00

Fixed tooltip width

This commit is contained in:
Vladimir Volek 2018-09-24 17:15:36 +02:00
parent 6bd2cd6471
commit a54e3a3623
2 changed files with 3 additions and 6 deletions

View File

@ -6,10 +6,10 @@ import PropTypes from 'prop-types';
const Wrapper = styled.div`
.rc-tooltip {
min-width: 200px;
max-width: ${props => `${props.maxWidth}px` || 'auto'};
position: absolute;
z-index: 1070;
display: block;
visibility: visible;
border: 1px solid ${colors.DIVIDER};
border-radius: 3px;

View File

@ -108,12 +108,9 @@ const AccountSummary = (props: Props) => {
<H2Wrapper>
<H2>Tokens</H2>
<StyledTooltip
maxWidth={200}
placement="top"
content={(
<React.Fragment>
Insert token name, symbol or address to be able to send it.
</React.Fragment>
)}
content="Insert token name, symbol or address to be able to send it."
>
<StyledIcon
icon={ICONS.HELP}