mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
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" />
This commit is contained in:
parent
a6a2465954
commit
c58763a526
1 changed files with 0 additions and 2 deletions
|
|
@ -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)),
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue