-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: truncate text adding ellipsis after certain length #24831
fix: truncate text adding ellipsis after certain length #24831
Conversation
Thanks for taking the time to open a PR!
|
Manuel Abascal seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Thanks for the PR @Manuel-Suarez-Abascal! This strikes me as something that needs a review from our design team before we make the change. The linked issue is quite vague "maybe can truncate...". It probably should not have been labelled a "good first issue" since it's not a clearly defined task. My initial concern is that the full browser name may sometimes be important & we should probably live with wrapping, or if we don't, we should offer a tooltip with full text. Users can define custom browsers and may give them all kinds of names that might be useful to see. If we go with truncating, my suggestion would be that we should not do it with JavaScript but use the That said, it looks to me like one of the problems reported in the issue has already been solved differently - the dropdown no longer has the weird centering/wrapping that was in that screenshot, it looks like this, which seems fine: @elevatebart would you mind giving some feedback on whether there's more to do here? Should we close that old issue, or do the truncating -- or do you and team have some other design guidance? |
Thank you @Manuel-Suarez-Abascal Good PR indeed. On a rather hard issue. <div class="ellipsis overflow-hidden whitespace-nowrap" /> |
Also, don't forget to rebase this Branch with only commits signed with GitHub. |
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.
Please use CSS to truncate the browser name.
@elevatebart thanks, it seems that I complicated things for no reason. I have addressed the PR comments. That being said, I use the
I am not sure what you mean about this. Hopefully, I complied with this requirement 😬 |
Thank you @Manuel-Suarez-Abascal, I like this new fix. By rebasing your branch with only signed commit I was trying to get rid of the Red Cross here. This unsigned commit prevents us from merging your PR. |
I believe also that the initial problem mentioned in the ticket was fixed another way. @marktnoonan could you confirm that so that @Manuel-Suarez-Abascal does not have to needlessly rebase his PR? |
Hi @elevatebart , sorry for my delay here. I was referring to this:
I don't personally think we still need this ticket as I would prefer the full browser name to be shown, but I'll defer to you on the design. There are two things:
I suggest we leave the drop down alone since there is no bad overflow, and that we only truncate in the launchpad. If it turns out in the future we need the full browser name back, we can have it back easily. @Manuel-Suarez-Abascal if you can modify this to only make the change in If it's simpler feel free to make a fresh PR with your one-line change and tag me there. |
@marktnoonan I have addressed the PR comments. However, I am not sure how to fix the issue of the CLA signature. If I open another branch/PR I am sure I will have the same issue. I got another PR opened & it's the same 😞 |
Looks good, let me try kick off CI. |
@lmiller1990 I have been trying to fix this, but I haven't been lucky. I will give it a shot in the next few days again. |
No problem. You should be able to revert and re-commit and force push, that should be enough to get the CLA to pass. Let me know if you need any more assistance. |
Sorry, guys. I am not able to fix it. I have spent more time trying to fix this CLA thingy than contributing to the code 🤣 if we cannot move forward with it. I might just close the PR & reopen another in the future. Let me know what's best. |
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
I think this issue is the CLA is not signed for another account you have, or you committed without a git user set, or something to that meaning. The easiest way to fix this would be
That'll wipe out all those old commits that haven't signed the CLA. Then we can merge this. |
@lmiller1990 I have closed this PR & reopened another with the same changes to get rid of the CLA issue here. It seems it has solved the issue. |
Closed in favor of: #25270 |
After the changes:
User facing changelog
It truncates the browser name in the UI after a determined length(16) in order to avoid layout issues when the browser name is too long.
Additional details
N/A
Steps to test
How has the user experience changed?
An ellipsis will be added if the browser name is too long. Ellipsis will be added if the browser name is more than 16 characters.
PR Tasks
cypress-documentation
?type definitions
?