# Fix Git UI truncation for long branch names \(\#40598\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fa550de922f3fab7ba4668f3e976a80e576f8528

Requested commit: fa550de922f3fab7ba4668f3e976a80e576f8528

Commit: fa550de922f3fab7ba4668f3e976a80e576f8528

Tree: 6e08722280edf4832c4b972451bd56e93c132c0f

Author: Ruangyot Nanchiang

Committer: GitHub

## Message

```
Fix Git UI truncation for long branch names (#40598)

Closes #40524

Release Notes:
- Fixed branch names not truncating properly in git branch picker.

Please review if you have time.

PS. I’m not fully sure if this completely fixes the issue, but I’ve
tested it on my local build and it seems to work fine.

Before Fix:
<img width="773" height="799"
alt="502782621-91ac0578-9f55-4fb3-b0da-49a49e862a33"
src="https://github.com/user-attachments/assets/a9597949-c46a-47d0-a9ef-eddd637a9dc7"
/>

After Fix:
<img width="545" height="766" alt="FixedRound2"
src="https://github.com/user-attachments/assets/0d9770dc-a9da-46cd-a69a-4c8de2ca1abd"
/>
```

## Parents

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

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