-
Notifications
You must be signed in to change notification settings - Fork 113
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
Increase header email column size, truncate email #1412
Conversation
**Why**: Currently, longer emails can break into multiple lines in the header. **How**: Increased column size for welcome message+email. Truncate very long emails. It was necessary to add a truncate wrapper class to the parent element, since we want to selectively truncate only a portion of the content, not the entire line.
This looks good! I did notice a few related issues that we can either try and address in this PR or make separate issues for (let me know if thats what you want and I can create the issues). I think we should apply the same truncation within the profile content. I think we may have lost that functionality during the last refresh: |
@hursey013 Oh yeah, that doesn't look good. I'll update the PR. |
c1809e5
to
ef83ff9
Compare
On mobile at least, it seems like since the email address is on its own line it could probably span the width of the box. |
It would just involve changing the column sizing there. I can't recall if there was a specific design reason they are sized the way they are, its probably fine to update them. EDIT: I see now that we have the columns sized the way they are because the designs specified that each of the edit action buttons should fit inline. Most of them would with a smaller column size, but not the 'get a new key' button. If it seems fine to have that break onto a new line, I can update the columns. |
The email won't ever be able to span the entire line however, its contained inside a parent div that needs to accommodate the If we want the information to be full width, we would need to duplicate the data in a hidden div, and only show it on mobile screens. |
Ah, gotcha, that makes sense. It looks like we may be able to gain a few more pixels by making it the full width of the parent container on mobile, guessing that will be sufficient. |
**Why**: These could also overflow, or cause undesireable line breaks
ef83ff9
to
285a1a2
Compare
Yep, already pushed up! 😄 |
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.
lgtm 👍
Why: Currently, longer emails can break into multiple lines in the
header.
How: Increased column size for welcome message+email. Truncate very
long emails. It was necessary to add a truncate wrapper class to the
parent element, since we want to selectively truncate only a portion of
the content, not the entire line.
Screenshots:
Shorter email:
Longer email: