-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: wallet island #1793
feat: wallet island #1793
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
className={icon.foreground} | ||
/> | ||
</svg> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: once we have a single arrow we should favor rotating it with css rather than including additional arrows
defaultAvatar | ||
<div className={cn(border.default, 'h-full w-full border')}> | ||
{defaultAvatar} | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding a 1px border around defaultAvatar means that avatars display at 40x40 and default avatars render at 38x38 (i.e. 40 - 1px top + 1px left)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is because of the way the svg path is drawn, you are seeing the bleed from the edge of the path (which is styled to be white), you may be able to fix this by separating into a path for the white part and a circle behind it in the inverse. you could apply the border hack with a transparent border to the users img but you'd still end up changing the size from 40 to 38 unless you adjust the sizes to a non-standard tailwind size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha, okay, i will try to fix this up as a fast-follow. thanks!
I'm a little confused by these changes. Seems like we are just creating a bunch of *Default components. I thought the goal with this component was to be able to compose the version you wanted. With default children, this would give us: Additionally, drag seems like a much more useful feature (with a more straightforward implementation) if it only applied to the WalletIsland or WalletDropdown child vs. the entire component. |
Can we center |
We ended up creating some defaults, but all of the underlying components are composable, so someone could definitely do
This is an implementation decision. A dev could do this:
This would leave a ConnectWallet "anchor", with a draggable dropdown/advanced box. |
No. WalletAdvancedDefault is tall enough that on normal laptop screens it overflows the bottom of the screen when vertically centered. And WalletIsland is meant to be defaulted to bottom-left, so that's the playground implementation. |
We are using the Coinbase Wallet spam filter, with the setting that Coinbase Wallet uses itself, so these tokens are below the "likely spam" threshold. And we hide tokens with a zero-crypto balance. But we chose to keep tokens with a crypto balance but no fiat balance because some tokens aren't super liquid on dexes and don't have fiat prices, but would still be valuable to be seen. |
What changed? Why?
Notes to reviewers
How has it been tested?