# git_ui: Reduce spacing between action icon and label \(\#38445\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/c58763a5267228fd71e70dd9fed3b716f6d3c009)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: c58763a5267228fd71e70dd9fed3b716f6d3c009

Requested commit: c58763a5267228fd71e70dd9fed3b716f6d3c009

Commit: c58763a5267228fd71e70dd9fed3b716f6d3c009

Tree: b692619f155b68d03ce4f98cddc859450d93de5e

Author: Bartosz Kaszubowski

Committer: GitHub

## Message

```
git_ui: Reduce spacing between action icon and label (#38445)

# 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

<img width="384" height="186" alt="Screenshot 2025-09-18 at 20 11 16"
src="https://github.com/user-attachments/assets/8f353b8f-8e43-466d-88a9-567a82100b5f"
/>
<img width="384" height="186" alt="Screenshot 2025-09-18 at 20 13 19"
src="https://github.com/user-attachments/assets/1ecb4e1a-8a60-45b6-988e-966fb2b27ff5"
/>


### After

<img width="392" height="168" alt="Screenshot 2025-09-18 at 19 53 14"
src="https://github.com/user-attachments/assets/388d9b83-9906-4eac-82ed-13d2ae78c990"
/>
<img width="392" height="168" alt="Screenshot 2025-09-18 at 19 53 34"
src="https://github.com/user-attachments/assets/a179239b-ac09-479e-b688-f895ba75ca33"
/>
<img width="392" height="168" alt="Screenshot 2025-09-18 at 19 56 23"
src="https://github.com/user-attachments/assets/6ca10cf1-d46d-43b7-b847-832555823b8a"
/>
```

## Parents

- [a6a2465954822be296f1b45f7732eed059dddc1f](https://git.cafe/gitcafe/zed/commit/a6a2465954822be296f1b45f7732eed059dddc1f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/c58763a5267228fd71e70dd9fed3b716f6d3c009?format=markdown)
