code4rena-dev / components-library

Components library for Code4rena, and accessible as a package to be used in React based Code4rena products.
https://components-library-wine.vercel.app
0 stars 0 forks source link

Card Component at Narrrow Viewports #39

Closed matthewcsimpson closed 8 months ago

matthewcsimpson commented 9 months ago

There's a visual bug with the card component at small viewports. The image shrinks to accommodate longer user names:

350px: image

450px: image

500px: Screenshot 2024-01-15 at 17 03 32

Once you get to a place where both fit, it's fine.

My suggestion is to fix the image size with min/max width/height and then either hide the overflow or use word-wrap to make the text wrap.

matthewcsimpson commented 9 months ago

Logged in view as well: image

leo95oliveira commented 8 months ago

@matthewcsimpson the PR was merged! Apologies for the delay. You just need to update the components-library version to 3.0.2 in whatever project this component is affecting :)

Closing this issue for now but feel free to reopen it if required