1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

fix tooltip position

This commit is contained in:
Vladimir Volek 2019-04-16 11:50:52 +02:00
parent bcd618aa0a
commit 025b685280

View File

@ -53,7 +53,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;
@ -135,19 +135,19 @@ 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 <Tooltip
isTransparent placement="top"
onClick={() => props.showAddress(account.accountPath)} content={
<VerifyAddressTooltip
isConnected={device.connected}
isAvailable={device.available}
addressUnverified={addressUnverified}
/>
}
> >
<Icon <Icon
size={16} size={16}
@ -162,8 +162,8 @@ const AccountReceive = (props: Props) => {
: colors.TEXT_PRIMARY : colors.TEXT_PRIMARY
} }
/> />
</EyeButton> </Tooltip>
</Tooltip> </EyeButton>
) )
} }
/> />