From e56f29ffde7efd0401101c9002dbbf4d8a65c083 Mon Sep 17 00:00:00 2001 From: Jake Norris <102190210+jakenorris1124@users.noreply.github.com> Date: Thu, 30 Apr 2026 07:41:26 -0400 Subject: [PATCH] git_graph: Fix mouse cursor not switching to cursor pointer in git graph (#55247) This PR calls 'cursor_pointer()' on the appropriate UI elements. It is a very small change, but it is my first time contributing, so please let me know if I have made any mistakes. Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #55218 Release Notes: - Fixed the mouse cursor not switching to cursor pointer when hovering commit rows in the git graph --- crates/git_graph/src/git_graph.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/git_graph/src/git_graph.rs b/crates/git_graph/src/git_graph.rs index a69da25daa..e98e635c14 100644 --- a/crates/git_graph/src/git_graph.rs +++ b/crates/git_graph/src/git_graph.rs @@ -2811,6 +2811,7 @@ impl Render for GitGraph { .id("graph-canvas") .size_full() .overflow_hidden() + .cursor_pointer() .child( div() .size_full() @@ -2846,6 +2847,7 @@ impl Render for GitGraph { }; row.h(row_height) + .cursor_pointer() .when(is_selected, |row| row.bg(selected_bg)) .when(is_hovered && !is_selected, |row| row.bg(hover_bg)) .on_hover(move |&is_hovered, _, cx| {