mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-01 13:00:41 +01:00
96508041c7
## Summary When the git panel shrinks and becomes too narrow to contain all the UI elements of a status entry, the file name and path are truncated first, but the icons then overflow and overlap with the right-side UI (diff stats and checkbox). The reason is that although the icons are `flex_none`, they were grouped with the name and path inside a `flex_1` / `min_w_0` container, causing an overflow. This PR splits the icons and path into separate divs, keeping the icon div as `flex_none` to prevent the overflow. ## Testing Left is current, right is after the fix: [屏幕录像_20261029_155224.webm](https://github.com/user-attachments/assets/bd751480-adfd-411e-85b0-e80323b8cdfe) ## 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). - [ ] Tests cover the new or changed behavior. Release Notes: - Fixed entry icons overlapping diff stats in a narrow Git panel. --------- Co-authored-by: Kirill Bulatov <kirill@zed.dev>