🐛 [Bug] Double ellipses for truncated strings
Created by: Tirokk
Authored by mattwr18 Closed
🐛 Bugreport
We refactored to use an npm library trunc-html
, and now we have double ellipses
Steps to reproduce the behavior
- write a comment more than 180 characters
- you should see show more link to click on and two sets of ellipses
- you should see the same for long users names/long post titles
- ...
- Profit
Expected behavior
we should only have one set of ellipses
At the moment, we are using vue-filters
for our truncating...
if (output.length < value.length) {
output += ' …'
}
this bit of code is superfluous see https://github.com/Human-Connection/Human-Connection/blob/master/webapp/plugins/vue-filters.js#L42