UX: Fix search topic titles wrapping (PR #13315)

A followup to e3b0abc and a replacement PR for #13298. Fixes long topic titles wrapping to a separate line in the dropdown search results.

Also replaces divs that were incorrectly nested inside spans.

GitHub