mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
git_graph: Add button to open up the commit view (#49910)
This PR adds a button at the bottom of the commit details panel to quickly open the commit view: <img width="500" height="806" alt="Screenshot 2026-02-23 at 2 22@2x" src="https://github.com/user-attachments/assets/770234b2-a46d-4595-9f9e-7af7eeac73be" /> --- 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
This commit is contained in:
parent
a3c62de696
commit
67e63ec087
1 changed files with 11 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue