From 67e63ec087c89ee5261eb214d468f26ba7d4ea00 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Mon, 23 Feb 2026 14:36:01 -0300 Subject: [PATCH] git_graph: Add button to open up the commit view (#49910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR adds a button at the bottom of the commit details panel to quickly open the commit view: Screenshot 2026-02-23 at 2  22@2x --- Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --- crates/git_graph/src/git_graph.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/git_graph/src/git_graph.rs b/crates/git_graph/src/git_graph.rs index 472fbaa6483fa110364d2c6e4affccc3e3772991..37f170ada5ecd23daf5ee58ee1011af95bfc6b8d 100644 --- a/crates/git_graph/src/git_graph.rs +++ b/crates/git_graph/src/git_graph.rs @@ -1560,6 +1560,17 @@ impl GitGraph { .vertical_scrollbar_for(&self.changed_files_scroll_handle, window, cx), ), ) + .child(Divider::horizontal()) + .child( + h_flex().p_1p5().w_full().child( + Button::new("view-commit", "View Commit") + .full_width() + .style(ButtonStyle::Outlined) + .on_click(cx.listener(|this, _, window, cx| { + this.open_selected_commit_view(window, cx); + })), + ), + ) .into_any_element() }