From d990d327bcb2d1ea7649eb68dbc12a84e4acb59f Mon Sep 17 00:00:00 2001 From: Parker Loflin Date: Tue, 24 Nov 2026 08:59:19 +0000 Subject: [PATCH] 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 --- crates/git_ui/src/git_panel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index a59a926aa64..1042dbb3463 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -7287,6 +7287,7 @@ impl GitPanel { .w_full() .pl_1() .pr_2() + .py(DynamicSpacing::Base04.rems(cx)) .flex_none() .flex_wrap() .gap_1()