Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git_graph: Fix mouse cursor not switching to cursor pointer in git graph (#55247)

Jake Norris8068aeb09e28
diff --git a/crates/git_graph/src/git_graph.rs b/crates/git_graph/src/git_graph.rs
index a69da25daa9..e98e635c141 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| {