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
Fitty calculate font-size will cause text to be ellipsed when using text-overflow: ellipsis
#83
Comments
true, I think it would be best to set text-overflow to its default value on elements that are used with Fitty |
I see your point, but what we're trying to achieve is to have a min font-size on the Fitty text, and when the font-size can't get any smaller (say 8px), the truncation will kick in and ellipsis the part that is out of the container. But it seems that |
I'll leave this issue open then. |
Current behavior
When applying
overflow:hidden
andtext-overflow: ellipsis
to the fitty element while setting themax-width
of the fitty element to be the exact width of it's parent, the css ellipsis will kick in.Expected behavior
Ideally when the max-width of the fitty element is the same as it's parent's width, the calculated font-size should not be causing ellipsis to work.
Demo
https://codesandbox.io/s/fitty-demo-forked-6ojp3z
Any kind of help is appreciated and thanks again for making this awesome tool 🎉
The text was updated successfully, but these errors were encountered: