From 5805f62f1812b3ece91ba8fa00203ccf7a238ad2 Mon Sep 17 00:00:00 2001 From: Devzeth <47153906+devzeth@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:14:43 +0100 Subject: [PATCH] git_ui: Show missing right border on selected items (#44747) For folders and files basically any selected item in the git panel we draw a border around it. The issue is that the right side of this border wasn't ever visible. In the project_panel.rs file I've saw that the decision was to make the right side border 2 pixels. And this panel doesn't have this issue, no matter which side of the dock is selected. So it was a very easy `look at how we did x do y`. Before: ![image](https://github.com/user-attachments/assets/8ce32728-8ad6-487c-80f5-1c46d9756f4a) After: ![image](https://github.com/user-attachments/assets/998899b4-af98-4cc2-9435-4df6c98c1a50) I don't think it warrants a release note. Release Notes: - N/A --------- Co-authored-by: Danilo Leal --- crates/git_ui/src/git_panel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 527e5062ae45a48c286bffe957821f12705ec60c..cf588d6b0448c2a7c8e7feb50d34c6e405845116 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -4811,8 +4811,8 @@ impl GitPanel { .id(id) .h(self.list_item_height()) .w_full() - .items_center() .border_1() + .border_r_2() .when(selected && self.focus_handle.is_focused(window), |el| { el.border_color(cx.theme().colors().panel_focused_border) }) @@ -4977,6 +4977,7 @@ impl GitPanel { .w_full() .items_center() .border_1() + .border_r_2() .when(selected && self.focus_handle.is_focused(window), |el| { el.border_color(cx.theme().colors().panel_focused_border) })