# git_ui: prevent branch name overflow in git details pane \(\#62665\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 56b1e79a5565164cd118ca6007243ea4c047f000

Requested commit: 56b1e79a5565164cd118ca6007243ea4c047f000

Commit: 56b1e79a5565164cd118ca6007243ea4c047f000

Tree: baeb2ea407e0e411ec6e8a29ee2a1165377c7727

Author: AbdAlRahman Gad

Committer: GitHub

## Message

```
git_ui: prevent branch name overflow in git details pane (#62665)

# Objective

- prevent branch name overflow in git details pane
- Fixes #62526 

## Solution

- set min width
- add tooltip for readability

## Testing

- manual testing

## Self-Review Checklist:

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

## Showcase
### before
- 
<img width="670" height="205" alt="image"
src="https://github.com/user-attachments/assets/26716b50-6f09-40c1-bec5-d78bd913d4ec"
/>

- No tooltip

### After
- 
<img width="499" height="203" alt="image"
src="https://github.com/user-attachments/assets/3eee21e8-f9e8-4c30-a21d-0c23bf25c9de"
/>

- Tooltip: 

<img width="609" height="364" alt="image"
src="https://github.com/user-attachments/assets/822d784d-889e-4d26-b8e6-de46f8206569"
/>

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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