From 50bd8770bd64ae76dc84c6cc6935ee1c04c0daf9 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Wed, 28 May 2025 23:29:51 +0200 Subject: [PATCH] file_finder: Reduce vertical padding in footer (#31632) Follow-up to #31542 This PR reduces the vertical padding in the file finders footer. We can remove this padding as we already apply it just above https://github.com/zed-industries/zed/blob/a5a116439e711772190b7fb8e5507eb5dbd95237/crates/file_finder/src/file_finder.rs#L1500 This also ensures that the items on the right side have the same padding to the border as the icon on the left side. Currently, due to the padding being applied twice, the items on the right side have `pr_4` as well as `py_4` in practice, which seems a little excessive. | `main` | This PR | | --- | --- | | ![file_finder_main](https://github.com/user-attachments/assets/352d2ac9-04a9-487d-96ca-b009b797809b) | ![file_finder_pr](https://github.com/user-attachments/assets/c0b44beb-ff2c-4e93-a5b1-2393652a2a58) | Release Notes: - N/A --- crates/file_finder/src/file_finder.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/file_finder/src/file_finder.rs b/crates/file_finder/src/file_finder.rs index 77ec7fac9bb0194becd23c46e8a0ddb6a03fd45b..aa9ee4ca0a8e99745a132f3c3448b5ba5617a450 100644 --- a/crates/file_finder/src/file_finder.rs +++ b/crates/file_finder/src/file_finder.rs @@ -1527,7 +1527,6 @@ impl PickerDelegate for FileFinderDelegate { ) .child( h_flex() - .p_2() .gap_2() .child( Button::new("open-selection", "Open").on_click(|_, window, cx| {