Fix problem with long metadata category names

Changed the style to only use the available space inside the tab and nothing
more i. e. there won't be x-axis scroll bars if the category name doesn't fit
inside the tab.

Fixes #246