Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project_panel: Fix alignment of folded directory path components (#47648)

Smit Barmase1c113e706568
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index b9e12695ca3..e96b15ce2e5 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))