# project_panel: Fix alignment of folded directory path components \(\#47648\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1c113e7065686b444606cdb8cd8cc926ea258a68

Requested commit: 1c113e7065686b444606cdb8cd8cc926ea258a68

Commit: 1c113e7065686b444606cdb8cd8cc926ea258a68

Tree: d597f3136d9b206a906850fa46a762d3b405e990

Author: Smit Barmase

Committer: GitHub

## Message

```
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:
<img height="180" alt="before-1"
src="https://github.com/user-attachments/assets/5be234a6-4fca-4940-a979-4cfb767875bb"
/> <img height="180" alt="before-2"
src="https://github.com/user-attachments/assets/1825e12b-eb55-48fe-9b3c-ac52e552581b"
/>

After:
<img height="180" alt="after-1"
src="https://github.com/user-attachments/assets/03b1029d-6664-49bd-9371-680fc912c67c"
/> <img height="180" alt="after-2"
src="https://github.com/user-attachments/assets/fa4954d7-796c-48f3-8f77-6aaee7bfc35c"
/>

Release Notes:

- Fixed alignment of folded directory names in project panel.
```

## Parents

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

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