From 47af72bfe10d26d2d960e50b0b06379aabee3110 Mon Sep 17 00:00:00 2001 From: Vladimir Varankin Date: Thu, 12 Jun 2025 15:38:15 +0200 Subject: [PATCH] project_panel: Don't add extra margin-left to file name labels (#32602) In this PR I want to improve the UI of the project panel's files tree. Currently, the project panel renders an extra gap between file icons and the file name, making it visually unpleasant. The changes in the PR remove the gap, bringing the labels closer to their icon: _Before/After_ zed-before-after Also, this extra gap between the icon and the label seems inconsistent with how other similar components, which are based on the `ListItem`, are used. Release Notes: - Fixed an extra gap between the file icon and the file name label in the project panel. --- crates/project_panel/src/project_panel.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 1ead1c2a9c..9e7dd9b5e3 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -4413,8 +4413,7 @@ impl ProjectPanel { ) } }) - } - .ml_1(), + }, ) .on_secondary_mouse_down(cx.listener( move |this, event: &MouseDownEvent, window, cx| {