# git_ui: Let branch and repo name use available panel width \(\#57502\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 949d9931462ffa75b1873522b0d7976f9518e2bf

Requested commit: 949d9931462ffa75b1873522b0d7976f9518e2bf

Commit: 949d9931462ffa75b1873522b0d7976f9518e2bf

Tree: eaefcb6e6aae28a0352a0426ae14a4e9cd498247

Author: Matei Oprea

Committer: GitHub

## Message

```
git_ui: Let branch and repo name use available panel width (#57502)

The git panel footer truncated branch and repo against a predefined
character budget. This PR improves that and lets both float free with
flex-based truncation.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable



Some examples.

<img width="738" height="1794" alt="Screenshot 2026-05-22 at 17 35 09"
src="https://github.com/user-attachments/assets/18a4873c-fbcf-4875-8d1a-82eaa2ce222c"
/>
<img width="1590" height="1562" alt="Screenshot 2026-05-22 at 17 35 15"
src="https://github.com/user-attachments/assets/c4adf7a3-e093-4104-af20-c098eda80c08"
/>
<img width="990" height="1570" alt="Screenshot 2026-05-22 at 17 28 20"
src="https://github.com/user-attachments/assets/eda0dd31-2461-4d4b-b63c-902c6c47231e"
/>
<img width="606" height="1640" alt="Screenshot 2026-05-22 at 17 28 12"
src="https://github.com/user-attachments/assets/4a165d75-93d3-45a4-9d8b-525c39f49493"
/>


Closes #57238

Release Notes:

- Fixed the git panel branch name staying truncated even when the panel
was wide enough to show the full name (#57238)
```

## Parents

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

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