Fix product cards overlapping in My Products view#514
Open
DhruvN102 wants to merge 5 commits into
Open
Conversation
The title/description block in each My Products card lacked min-w-0, so long product names could push the flex row wider than the card, letting the type/source badges spill past the card's own boundary and overlap neighboring cards in the grid. Add min-w-0 + break-words to the title block and shrink-0 to the badge container so content wraps within its own card instead of overflowing. Closes a11yhood#500
The title/description block in each My Products card lacked min-w-0, so a title with no spaces to wrap on could push the flex row wider than the card and spill past its own boundary into the neighboring card. Add min-w-0 + break-words to the title block so it wraps within its own card instead of overflowing. Verified against real rendered output at multiple widths: normal multi-word titles wrap identically before/after (no regression), and a title with no spaces (matching the a11yhood#302 pattern) now wraps inside its card instead of overflowing. Closes a11yhood#500
jmankoff
reviewed
Jul 18, 2026
jmankoff
left a comment
Contributor
There was a problem hiding this comment.
This is great! I noticed that if there is no space between words, the old problem still happens. I think that would be appropriate to address in this PR as well.
Author
I pushed a fix for a title case with no spaces by switching to |
jmankoff
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR do?
Fixes overlapping badges (e.g. "Tool", "Archive.Org") on product cards in the "My Products" section of the profile page.
Why?
Closes #500. Without min-w-0 on the title/description block, an unbreakable long title could push the row past the card's boundary which spills badges onto the next card.