Truncate extension descriptions

This is for #8216.

- [ ] Code to toggle between original and truncated description
- [x] Visual review
- [ ] Code review
It's better to set a var to `description.lastIndexOf(" ")` and use it instead of calling the function 3 times.