Tabs: Fixed click handling of small-screen tabs

Fixes #5812