Avatar made mobile responsive #36
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes avatar grid overflow on mobile by making the grid responsive and constraining avatar button sizing to prevent layout breakage on small screens.
Type of Change
How Has This Been Tested?
Tested locally using Chrome DevTools mobile viewports (iPhone SE, iPhone 12) and desktop browser. Verified that the avatar grid no longer overflows its container and remains visually consistent and tappable across screen sizes.
Screenshots
N/A (UI-only change tested locally)
Checklist
Additional Information
The issue was caused by a fixed 5-column grid combined with large emoji sizes, which resulted in overflow on smaller screens. The fix uses a responsive grid layout and fixed aspect-ratio avatar buttons to maintain proper alignment on mobile devices.
Learning Outcomes
Learned how emoji sizing and fixed grid layouts can impact mobile responsiveness, and how responsive grids and aspect-ratio constraints help prevent UI overflow issues.