UI fixes for query panel tabs, especially for Mac