-
Notifications
You must be signed in to change notification settings - Fork 79
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
Bug? - When the string does not contain spaces it is not clamped #39
Comments
You may need to set |
@xiaody Thank you for the quick reply 😄 I attempted setting both |
And also you need to add style react-lines-ellipsis only clamps lines, not width. So you need to tell the browser to wrap the line. |
same question, even add style |
@xiaody Facing same issue and even adding style |
@xiaody is this problem under evaluation? We are facing the same problem, when there's only one word that does not contain spaces |
As I have said, this is not a bug IMO. Users need to correctly set the props and style for such cases. |
Check the comments in #45 if you're facing the same problem. |
It could be that I'm using the component incorrect. Please correct me if I am.
This is an edge case for sure, but if the string does not contain any spaces it doesn't appear to be clamped.
From the demo
The text was updated successfully, but these errors were encountered: