CezaryDanielNowak / React-dotdotdot

Multiline text ellipsis for react. Demo:
https://nowak.click/react-dotdotdot/
MIT License
401 stars 54 forks source link

Will be render to `...` when the children a series of number. #44

Open icarusysuper opened 5 years ago

icarusysuper commented 5 years ago
<Dotdotdot>
  <div>4654654351321314313131321231231321313131213211313134654654351</div>
</Dotdotdot>

will be render to (shown at broswer page)

...
CezaryDanielNowak commented 5 years ago

Hmm I can't reproduce this, I assume it's some custom CSS issue

Natho74 commented 5 years ago

Hi, I'm also having this issue but I believe it is caused by a single word/string longer than what would fit on the lines you specify in clamp.
If you had a string of 45 characters and specified clamp to two lines and each line only fit 20 characters it would shorten the entire string to "..." instead of 40 of the characters followed by "..."