Fixed commit search UI
What does this MR do?
Fixes the UI for commits in search.
If the scope of the search is commits then it renders the list in a ul
to match the same styling as that on the commits UI.
Screenshots (if relevant)
What are the relevant issue numbers?
Closes #21868 (closed)