From c58763a5267228fd71e70dd9fed3b716f6d3c009 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Thu, 18 Sep 2025 20:34:13 +0200 Subject: [PATCH] git_ui: Reduce spacing between action icon and label (#38445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Why Opinionated change: A bit uneven spacing between Git action icon and label, in comparison to the border on the right in the segmented action button was triggering my UI OCD a bit. 😅 # How Remove the right margin from icon and icon + counter children of the segmented Git action button in Git Panel. The default spacing from the button layout seems to be enough to separate them from the left-side label. # Release Notes - Reduced spacing between Git action icon and label in Git Panel # Test plan I have tested few cases, and made sure that the spacing is still present, but icon (or icon and counter) does not feel too separated/detached from the label. ### Before Screenshot 2025-09-18 at 20 11 16 Screenshot 2025-09-18 at 20 13 19 ### After Screenshot 2025-09-18 at 19 53 14 Screenshot 2025-09-18 at 19 53 34 Screenshot 2025-09-18 at 19 56 23 --- crates/git_ui/src/git_ui.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rs index cede717d53b257be2570c4b0c067fb46341c0fc5..da2e2ca032aa005ad619eabf094ae6981975b050 100644 --- a/crates/git_ui/src/git_ui.rs +++ b/crates/git_ui/src/git_ui.rs @@ -645,7 +645,6 @@ mod remote_button { this.child( h_flex() .ml_neg_0p5() - .mr_1() .when(behind_count > 0, |this| { this.child(Icon::new(IconName::ArrowDown).size(IconSize::XSmall)) .child(count(behind_count)) @@ -660,7 +659,6 @@ mod remote_button { this.child( h_flex() .ml_neg_0p5() - .mr_1() .child(Icon::new(left_icon).size(IconSize::XSmall)), ) })