Skip to content

fix(profile): resolve circular profile image upload distortion and layout overflow (fixes #30)#56

Merged
devpathindcommunity-india merged 2 commits into
masterfrom
feature/fix-profile-avatar-overflow
May 17, 2026
Merged

fix(profile): resolve circular profile image upload distortion and layout overflow (fixes #30)#56
devpathindcommunity-india merged 2 commits into
masterfrom
feature/fix-profile-avatar-overflow

Conversation

@Aditya948351

Copy link
Copy Markdown
Collaborator

This PR fixes Issue #30 by implementing a two-layer structure for the profile avatar in UserProfile.tsx. It isolates the circular mask inside an overflow-hidden wrapper, resolves the circular height dependency (lg:h-auto), and floats the camera edit button perfectly on the circular edge.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the profile avatar rendering on the Profile Settings page by isolating the circular mask/cropping behavior so extreme-aspect-ratio images don’t distort the layout (Issue #30).

Changes:

  • Wrapped the avatar <img> in a rounded-full overflow-hidden container to enforce clean circular cropping.
  • Moved border/shadow styles from the <img> to the wrapper and adjusted the camera edit button positioning/z-index.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/profile/UserProfile.tsx Outdated
Comment thread src/components/profile/UserProfile.tsx

@devpathindcommunity-india devpathindcommunity-india left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closes #56

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@devpathindcommunity-india devpathindcommunity-india merged commit e40e3f9 into master May 17, 2026
@Aditya948351 Aditya948351 deleted the feature/fix-profile-avatar-overflow branch May 18, 2026 08:30
@Aditya948351 Aditya948351 removed gssoc26 This is a official GirlScript Summer of Code label. gssoc:approved give 50+ base points level:advanced Advanced issues quality:clean quality:exceptional type:bug type:assessibility type:design labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants