git_ui: Keep vertical padding in the wrapped panel header (#67388)

## Summary

When the Git panel is narrow, its header wraps and the top row's hover
background touches the tab bar. The header now has vertical padding. Its
single-row height doesn't change.

Closes #67351

## Testing

- To reproduce, narrow the Git panel until its header wraps, then hover
**Uncommitted**.
- Tested on Linux. The hover background clears the tab bar when the
header wraps, and the unwrapped panel is pixel-identical to `main`.
- `cargo test -p git_ui --lib` and `./script/clippy -p git_ui` pass.
- This is a one-line layout change, so it has no automated test.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [ ] Tests cover the new or changed behavior.

Release Notes:

- Fixed Git panel header buttons touching the tab bar when the header
wraps



https://github.com/user-attachments/assets/4e9ae182-cb6e-414f-af39-f5e220e15805
This commit is contained in:
Parker Loflin
2026-11-24 08:59:19 +00:00
committed by GitHub
parent 6837f17378
commit d990d327bc
+1
View File
@@ -7287,6 +7287,7 @@ impl GitPanel {
.w_full()
.pl_1()
.pr_2()
.py(DynamicSpacing::Base04.rems(cx))
.flex_none()
.flex_wrap()
.gap_1()