git_panel: Add some design tweaks (#59699)

Small things here: ensuring padding and responsiveness on the header is
good, make the global diff stat part of the "view diff" button, and
conditionally render the "sort by" filter section in the menu (no need
to render it if it's all disabled).

Release Notes:

- N/A
e1bfff8d09Danilo Leal committed on 6/22/2026, 12:35:20 PM· committed by GitHubparent7b73d5c
1 file changedLine totals unavailable