Files
zed/crates/git_ui
Dino fdb60b8003 git_ui: Ensure check is right-aligned in repository selector (#66831)
## Summary

Update how the check icon for the selected repository is rendered in
`RepositorySelectorDeletage` in order for it to be right-aligned, just
like we already do in other pickers – `ThemeSelector`,
`IconThemeSelector`, `ModelSelector`, `LineEndingSelector`, etc.

However, I'm not entirely sure whether it's always best for the
checkmark to be right-aligned, as that might mean the user's eyes have
to scan more in order to find the currently selected item.

## Testing

Tested manually as shown in the screenshots below.

### Showcase

<details>
  <summary>Before</summary>

<img width="5312" height="3018" alt="CleanShot 2026-11-11 at 12 59
40@2x"
src="https://github.com/user-attachments/assets/8baae0be-7cd4-4d46-aa34-a2ee74f9f639"
/>
</details>

<details>
  <summary>After</summary>

<img width="5312" height="2970" alt="CleanShot 2026-11-11 at 12 53
14@2x"
src="https://github.com/user-attachments/assets/41ca7690-1221-4f0d-a097-71144635c906"
/>
</details>

## 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:

- N/A
2026-11-11 17:43:20 +00:00
..