Files
zed/crates/git_ui
Remco Smits 87ce147829 git_ui: Make git graph refs its own column & resizable (#66260)
## Summary

Since https://github.com/zed-industries/zed/pull/59839 we moved the ref
labels outside of the description column, but this introduced for some
people a worse UX, because they have a very long branch names that now
couldn't be shown anymore since we truncate the label based on a min/max
available space. So I think making the ref labels its own column so that
you can resize the column to your own liking makes sense so that people
can view they ref labels based on their own liking column size that was
also suggested in https://github.com/zed-industries/zed/issues/65681
which i agree with.

As you can see now inside the after video the column can now be resized
and allows you to see more of your ref labels if needed :).

**Before**

<img width="1512" height="821" alt="Screenshot 2026-10-28 at 18 56 09"
src="https://github.com/user-attachments/assets/63090314-dce6-4b0f-9dd4-f8419fc8964d"
/>

**After**


https://github.com/user-attachments/assets/76a1a4a1-451d-41de-8068-039e38255030

## Testing

I validated that everything still works like selecting/highlighting a
row and toggling of rows as you can see inside the **after** video and
added tests that cover the new behavior.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- Added a resizable "Refs" column to the git graph that can be toggled
on or off from the column header's context menu
2026-10-29 09:56:22 +00:00
..