From 1c113e7065686b444606cdb8cd8cc926ea258a68 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Mon, 26 Jan 2026 19:00:43 +0530 Subject: [PATCH] project_panel: Fix alignment of folded directory path components (#47648) The padding on folded directory path components was causing the first component to be misaligned with regular entry labels. This adds a negative margin to the first component to compensate for the left padding while preserving the hover background. Before: before-1 before-2 After: after-1 after-2 Release Notes: - Fixed alignment of folded directory names in project panel. --- crates/project_panel/src/project_panel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index b9e12695ca3d8c860147d3ae7bf4e046232b272b..e96b15ce2e5936a4d09ae1c1f5741b33050aba6d 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -5360,6 +5360,7 @@ impl ProjectPanel { "project_panel_path_component_{}_{index}", entry_id.to_usize() ))) + .when(index == 0, |this| this.ml_neg_0p5()) .px_0p5() .rounded_xs() .hover(|style| style.bg(cx.theme().colors().element_active))