-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Profile - Settings - Longer email is overflowing the border #4622
Comments
Triggered auto assignment to @iwiznia ( |
@Expensify/design any ideas on how to solve this? |
Triggered auto assignment to @sylveawong ( |
I'd say we just truncate via ellipsis. This should be easy to do with RN. |
Is that via a fixed number of characters or a style property that specifies that anything that does not fit will get an ellipsis? |
I think you just specify that the text should only be 1 line and it should be truncated via ellipsis... https://reactnative.dev/docs/text#numberoflines & https://reactnative.dev/docs/text#ellipsizemode |
I think we solved a very similar problem in #3172. We truncated via ellipsis by giving the width of the container to the text, and fixing a numOfLines=1. |
ProposalIt just needs text clipping as you said. App/src/pages/settings/InitialPage.js Line 177 in 496086a
We are already using the clipping on text and numberOfLines 1. |
Triggered auto assignment to @JmillsExpensify ( |
Upwork job is here: https://www.upwork.com/jobs/~01ba5c8069caabd21c. |
Triggered auto assignment to @deetergp ( |
ProposalAs already discussed here, this problem should be easy to fix by truncating the overflowing email using ellipsis. The text is overflowing because the corresponding App/src/pages/settings/InitialPage.js Line 177 in 496086a
By limiting the In addition to this, based on the desired UX, you could also truncate the text before the @ symbol and instead display the full domain using some additional code logic. This would then look something like this: Personally, I'd probably prefer the first solution since, depending on the length of the domain name, the text might be truncated twice when using the second solution. |
Thanks for exploring the multiple options. I agree, I think Option 1 is best and is the most predictable across use cases. |
I agree that option 1 is what most folks would expect. Let's go with @parasharrajat's proposal. |
PR is up ⬆️ |
Issue reproducible during KI retests |
Reviewing now… |
Looks good, thanks @parasharrajat 👍 |
Issue not reproducible during KI retests (Fixed) |
@deetergp, @JmillsExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@deetergp, @JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
Any update on the Upwork job? |
Closed out the Upwork job. Feel free to message me on Slack if I can help with anything else! |
Also any idea why this issue didn't automatically close with the production deploy yesterday? |
Oh oops. I must have misunderstood your last comment. Per the linked PR this is still under the regression period, which will clear on 9/1. |
I think the issue is fixed. Please close it 😅 |
Issue not reproducible during KI retests (Fixed) |
Closing since this is no longer reproducible. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Longer email isn't overflowing the border
Actual Result:
Long email is overflowing the border
Workaround:
Unknown
Platform:
Unknown
Where is this issue occurring?
Version Number: 1.0.85-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: