-
Notifications
You must be signed in to change notification settings - Fork 64
fix(ui): avatar image performance #307
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
fix(ui): avatar image performance #307
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@JoltCode is attempting to deploy a commit to the AnswerOverflow Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Report
@@ Coverage Diff @@
## main #307 +/- ##
=========================================
+ Coverage 0 84.52% +84.52%
=========================================
Files 0 134 +134
Lines 0 11497 +11497
Branches 0 1531 +1531
=========================================
+ Hits 0 9718 +9718
- Misses 0 1523 +1523
- Partials 0 256 +256 see 134 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
className={cn('aspect-square h-full w-full ', className)} | ||
src={src} |
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.
remove src here
{...props} | ||
/> | ||
> | ||
<Image src={src ?? ''} width={48} height={48} alt={alt ?? ''} /> |
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.
maybe do a <> </> blank component if src is null
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.
dont hardcode sizes, get it from the passed in size
Description
Implements
next/image
to the avatar imageFixes #306 (issue)
Type of change
How Has This Been Tested?
N/A
Checklist: