Make tab bar more usable
- set sane maximum tab width
- let tabs shrink when there is not enough space
- when tabs are very narrow do not show text at all and show close button only on active tab