Prevent text wrapping in pane headers.

This fixes #9442.
It will look nicer if you also add:
```
overflow: hidden;
text-overflow: ellipsis;
```