Truncate extension descriptions

This is for #8216.

- [x] Code to toggle between original and truncated description
- [x] Visual review
- [ ] Code review
I don't think that we declare constant as class properties. Maybe you could place it at the top of the file (after the requires) as a variable.