Improved comment truncation
Created by: Tirokk
Authored by alina-beck Merged
🍰 Pullrequest
- use constants for comment truncation, as suggested by @Tirokk in PR #1903
- only truncate comments with more than 300 characters
At the moment also comments with 182 characters are shortened to 180 characters – so it looks weird when expanding and collapsing. When we increase the difference (300
is my suggestion) we make sure to truncate only when it makes a noticeable difference.
as @datenbrei kindly pointed out this also fixes #1795 (closed)