Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Revert "Remove extra empty space for files when file icons are turned off (#16142) (#16167)
Marshall Bowers7b613cb16913
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex d5b466b9336..d4fa0eff416 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -2120,12 +2120,13 @@ impl ProjectPanel {.into_any_element(),)})- .when_some(icon, |this, icon| {- this.child(- h_flex().child(- Icon::from_path(icon.to_string()).color(filename_text_color),- ),- )+ .child(if let Some(icon) = &icon {+ h_flex().child(Icon::from_path(icon.to_string()).color(filename_text_color))+ } else {+ h_flex()+ .size(IconSize::default().rems())+ .invisible()+ .flex_none()}).child(if let (Some(editor), true) = (Some(&self.filename_editor), show_editor) {