# project_panel: Don't add extra margin-left to file name labels \(\#32602\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/47af72bfe10d26d2d960e50b0b06379aabee3110)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 47af72bfe10d26d2d960e50b0b06379aabee3110

Requested commit: 47af72bfe10d26d2d960e50b0b06379aabee3110

Commit: 47af72bfe10d26d2d960e50b0b06379aabee3110

Tree: 97fed878e52b69c7da12b4cc93270cd4e62b8783

Author: Vladimir Varankin

Committer: GitHub

## Message

```
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_

<img width="647" alt="zed-before-after"
src="https://github.com/user-attachments/assets/d815c075-f1f8-4a77-a3b3-d1275988a5dc"
/>

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.
```

## Parents

- [c7ee489c0745eb87a8fe7346025f245a4c4fc462](https://git.cafe/gitcafe/zed/commit/c7ee489c0745eb87a8fe7346025f245a4c4fc462?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/47af72bfe10d26d2d960e50b0b06379aabee3110?format=markdown)
