You’ve probably encountered a situation where a “Read/Load more” link takes up as much space as it hides. Maybe a comment is six lines long and it obscures the last one.
Come on guys, it’s not hard to do properly.
With n as the number of lines you want to show, what should be done is this:
if(items.length > n) { print(items.limit(n-1); print(read_more_link); } else { print(items); }
rather than
n-=1; print(items.limit(n); if(items.length > n) { print(read_more_link); }
It’s not difficult.
No comments found.