Commit 7dae5b07 authored by tom goriunov's avatar tom goriunov Committed by GitHub

`Connect` button tooltip positioned in the corner (#2710)

Fixes #2708
parent 9f3b4060
...@@ -39,11 +39,12 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add ...@@ -39,11 +39,12 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add
return ( return (
<Tooltip <Tooltip
content={ <span>Connect your wallet<br/>to Blockscout for<br/>full-featured access</span> } content="Connect your wallet to Blockscout for full-featured access"
disabled={ isMobile || Boolean(address) } disabled={ isMobile || Boolean(address) }
openDelay={ 500 } openDelay={ 500 }
disableOnMobile disableOnMobile
> >
<span>
<Button <Button
ref={ ref } ref={ ref }
size={ size } size={ size }
...@@ -58,6 +59,7 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add ...@@ -58,6 +59,7 @@ const UserWalletButton = ({ size, variant, isPending, isAutoConnectDisabled, add
> >
{ content } { content }
</Button> </Button>
</span>
</Tooltip> </Tooltip>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment