# git_ui: Fix last commit UI glitching on panel resize \(\#39059\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 720971e47b30ae88649cc62eda3230bd4836742c

Requested commit: 720971e47b30ae88649cc62eda3230bd4836742c

Commit: 720971e47b30ae88649cc62eda3230bd4836742c

Tree: e1fd2a082caf58dfeedc00491be76d6e406166b9

Author: Bartosz Kaszubowski

Committer: GitHub

## Message

```
git_ui: Fix last commit UI glitching on panel resize (#39059)

# Why

Spotted that on Git Panel resize last commit UI part could glitch due to
commit message being wrapped into second line in certain situations.

# How

Force only one line for the last commit message in Git Panel via
`line_clamp`.

I have also remove manual `max-width` setting since it is controlled by
flex layout and gap setting no matter if there is an additional element
on the right or not.

Release Notes:

- Fixed last commit UI glitching on panel resize

# Preview

### Before


https://github.com/user-attachments/assets/9ce74f6f-d33c-4787-b7e4-010de8f0ffff

<img width="852" height="502" alt="Screenshot 2025-09-28 at 18 16 35"
src="https://github.com/user-attachments/assets/1131c73f-fe06-4d8e-adbb-5ce84ecf31e0"
/>

### After


https://github.com/user-attachments/assets/279b8c37-7ec9-4038-8761-197cba26aa83
```

## Parents

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

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