-
Notifications
You must be signed in to change notification settings - Fork 136
Fixed the icon placeholder position in FwbAvatar #350
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
Conversation
WalkthroughThis pull request updates the FwbAvatar component by changing the SVG element’s class binding from Changes
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for sensational-seahorse-8635f8 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
nice catch!
Thank you 🙌
There is a problem with placeholder position in avatar component. There is an optical compensation for default placeholder, that moves the icon with absolute position and bottom property. But if there is a placeholder provided by user then this compensation causes strange display of the icon.
For example, this is how the custom placeholder looks in current implementation in different sizes:

I added the blue border for the placeholder to show how it is positioned in the block.
I would expect that placeholder should be placed in the center of the avatar.
And this is how it is placed with my changes:

Summary by CodeRabbit
Style
Refactor