improved layout for search results (fixes #2436)