You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying overflow:hidden and text-overflow: ellipsis to the fitty element while setting the max-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.
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.
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: