mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
center tooltip
This commit is contained in:
parent
08b30b5daa
commit
56d2b8a0f7
@ -92,11 +92,14 @@ const Label = styled.div`
|
||||
|
||||
const StyledIcon = styled(Icon)`
|
||||
cursor: pointer;
|
||||
margin-left: 6px;
|
||||
align-items: center;
|
||||
margin-top: -5px;
|
||||
`;
|
||||
|
||||
const TooltipContainer = styled.div`
|
||||
margin-left: 6px;
|
||||
`;
|
||||
|
||||
const TooltipWrapper = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -138,13 +141,15 @@ class AccountBalance extends PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
const NoRatesTooltip = (
|
||||
<Tooltip
|
||||
maxWidth={285}
|
||||
placement="top"
|
||||
content={<FormattedMessage {...l10nMessages.TR_FIAT_RATES_ARE_NOT_CURRENTLY} />}
|
||||
>
|
||||
<StyledIcon icon={ICONS.HELP} color={colors.TEXT_SECONDARY} size={12} />
|
||||
</Tooltip>
|
||||
<TooltipContainer>
|
||||
<Tooltip
|
||||
maxWidth={285}
|
||||
placement="top"
|
||||
content={<FormattedMessage {...l10nMessages.TR_FIAT_RATES_ARE_NOT_CURRENTLY} />}
|
||||
>
|
||||
<StyledIcon icon={ICONS.HELP} color={colors.TEXT_SECONDARY} size={12} />
|
||||
</Tooltip>
|
||||
</TooltipContainer>
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user