Truncate extension descriptions

This is for #8216.

- [ ] Code to toggle between original and truncated description
- [x] Visual review
- [ ] Code review
You don't need `parseInt()` as `lastIndexOf()` already returns an integer.