# project_panel: Fix divider taking too much horizontal space \(\#44920\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0ead4668d2cbd1f0245cb0ffd1ef0de81644d50c

Requested commit: 0ead4668d2cbd1f0245cb0ffd1ef0de81644d50c

Commit: 0ead4668d2cbd1f0245cb0ffd1ef0de81644d50c

Tree: 1931fd47ba548a25b29d3bb5a78fc826b43c82d2

Author: Artem Molonosov

Committer: GitHub

## Message

```
project_panel: Fix divider taking too much horizontal space (#44920)

Closes: #44917

While setting up the project for contribution, I noticed that the
divider in the welcome dialog was rendering incorrectly on the `main`
branch compared to the latest release.

**Current behaviour (`main` branch):**
<img width="796" height="690" alt="image"
src="https://github.com/user-attachments/assets/3f7d6c73-14eb-47f3-ad83-4796f5f7be0f"
/>

**Expected behaviour (Release `0.216.1`):**
<img width="794" height="692" alt="image"
src="https://github.com/user-attachments/assets/b67857dc-a03d-4e49-bb33-22fe0c83ac5d"
/>

---

After some investigation, it looks like the issue was introduced in
#44505, specifically in [these
changes](https://github.com/zed-industries/zed/pull/44505/changes#diff-4ea61133da5775f0d5d06e67a8dccc84e671c3d04db5f738f6ebfab3a4df0b01R147-R158),
which caused the divider to take the full width instead of being
properly constrained.

**PR result**:
<img width="666" height="574" alt="image"
src="https://github.com/user-attachments/assets/e12b7778-b7cc-4855-b82e-3470dfe43365"
/>

Release Notes:

- Fixes -or- divider rendering incorrectly
```

## Parents

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

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