Truncate extension descriptions

This is for #8216.

- [x] Code to toggle between original and truncated description
- [x] Visual review
- [ ] Code review
Nit: it will look better if you first assign to the complete version and then to the short:

```
if (isShort) {
} else {
}
```