2 ms·
The author's use case can be handled with CSS instead of JavaScript: overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
by lapcat 3y ago
The author's use case can be handled with CSS instead of JavaScript:
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
- proto_lambda 3y agoThat's exactly how it is handled, I don't know where they got the idea that it's done by JS.