-
-
Notifications
You must be signed in to change notification settings - Fork 734
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: avoid awkward overlaps of group cards with lots of members, long project names, and small cards #7915
fix: avoid awkward overlaps of group cards with lots of members, long project names, and small cards #7915
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
…ar the lower edge of the card
@@ -85,6 +87,10 @@ const InfoBadgeDescription = styled('span')(({ theme }) => ({ | |||
fontSize: theme.fontSizes.smallBody, | |||
})); | |||
|
|||
const ProjectNameBadge = styled(Badge)({ | |||
wordwrap: 'anywhere', |
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.
I haven't seen this anywhere else in our codebase. How would it work with 'break-word'?
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.
looks like styled has some issues with the word-wrap property (wordWrap
would render correctly as word-wrap
, but linter told me the property was invalid; wordwrap
was accepted by the linter, but rendered as wordwrap
so it didn't work), so I'll go with word-break: break-word
instead.
This PR updates the styling of the group cards to better handle edge cases where you have a lot of assigned projects, long project names, lots of members, etc.
In particular, it does the following things:
Note: there is one more thing I'd like to address in a follow up: as shown in the top row of the after image, there's some extra wrapping of the first "This group has no users", even though it has the room to grow. I'll keep looking into this and make a follow-up.
Before:
After: