git_ui: Git panel polish (#25164)

- Hides header when no active repo/no repo
- Entire commit editor now has i-beam cursor on hover
- Adds an icon to the project diff tab

Release Notes:

- N/A
This commit is contained in:
Nate Butler
2025-02-19 15:33:41 +00:00
committed by GitHub
parent c0c48d30db
commit 086f002f44
2 changed files with 22 additions and 13 deletions
+4
View File
@@ -386,6 +386,10 @@ impl Focusable for ProjectDiff {
impl Item for ProjectDiff {
type Event = EditorEvent;
fn tab_icon(&self, _window: &Window, _cx: &App) -> Option<Icon> {
Some(Icon::new(IconName::GitBranch).color(Color::Muted))
}
fn to_item_events(event: &EditorEvent, f: impl FnMut(ItemEvent)) {
Editor::to_item_events(event, f)
}