1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-26 16:01:29 +00:00

Merge pull request #511 from trezor/fix/tooltip-position

fix ripple tooltip position
This commit is contained in:
Maroš 2019-04-16 12:20:28 +02:00 committed by GitHub
commit 502ccf0a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ const ShowAddressButton = styled(Button)`
const EyeButton = styled(Button)` const EyeButton = styled(Button)`
z-index: 10001; z-index: 10001;
padding: 0; padding: 0;
top: 12px; top: 10px;
position: absolute; position: absolute;
right: 10px; right: 10px;
@ -141,19 +141,20 @@ const AccountReceive = (props: Props) => {
icon={ icon={
(addressVerified || addressUnverified) && (addressVerified || addressUnverified) &&
!isAddressVerifying && ( !isAddressVerifying && (
<Tooltip <EyeButton
placement="left" isTransparent
content={ onClick={() => props.showAddress(account.accountPath)}
<VerifyAddressTooltip
isConnected={device.connected}
isAvailable={device.available}
addressUnverified={addressUnverified}
/>
}
> >
<EyeButton {' '}
isTransparent <Tooltip
onClick={() => props.showAddress(account.accountPath)} placement="top"
content={
<VerifyAddressTooltip
isConnected={device.connected}
isAvailable={device.available}
addressUnverified={addressUnverified}
/>
}
> >
<Icon <Icon
size={16} size={16}
@ -168,8 +169,8 @@ const AccountReceive = (props: Props) => {
: colors.TEXT_PRIMARY : colors.TEXT_PRIMARY
} }
/> />
</EyeButton> </Tooltip>
</Tooltip> </EyeButton>
) )
} }
/> />