mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 23:09:42 +00:00
This PR reverts #16142, as it isn't what we want from a design
standpoint.
Having the file names misaligned from the folder names is not the
desired behavior:
<img width="243" alt="Screenshot 2024-08-13 at 11 16 53 AM"
src="https://github.com/user-attachments/assets/12914e89-2641-4932-96c2-00e89e56d6d7">
We can revisit when we have design bandwidth.
This reverts commit ee6a40137f
.
Release Notes:
- Reverted #16142.
- @JosephTLyons @notpeter for release notes curation
This commit is contained in:
parent
8a9c58e515
commit
7b613cb169
1 changed files with 7 additions and 6 deletions
|
@ -2120,12 +2120,13 @@ impl ProjectPanel {
|
||||||
.into_any_element(),
|
.into_any_element(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.when_some(icon, |this, icon| {
|
.child(if let Some(icon) = &icon {
|
||||||
this.child(
|
h_flex().child(Icon::from_path(icon.to_string()).color(filename_text_color))
|
||||||
h_flex().child(
|
} else {
|
||||||
Icon::from_path(icon.to_string()).color(filename_text_color),
|
h_flex()
|
||||||
),
|
.size(IconSize::default().rems())
|
||||||
)
|
.invisible()
|
||||||
|
.flex_none()
|
||||||
})
|
})
|
||||||
.child(
|
.child(
|
||||||
if let (Some(editor), true) = (Some(&self.filename_editor), show_editor) {
|
if let (Some(editor), true) = (Some(&self.filename_editor), show_editor) {
|
||||||
|
|
Loading…
Reference in a new issue