# agent: Fix agent panel model selector layout pushing send button off screen \(\#32251\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 286b97c0de78785a362e613f1dd5e9b4175f385b

Requested commit: 286b97c0de78785a362e613f1dd5e9b4175f385b

Commit: 286b97c0de78785a362e613f1dd5e9b4175f385b

Tree: 9cb00773f26c086ad3f769c3147a4496adee675e

Author: Umesh Yadav

Committer: GitHub

## Message

```
agent: Fix agent panel model selector layout pushing send button off screen (#32251)

| Before | After |
|--------|-------|
| <video
src="https://github.com/user-attachments/assets/db4dcc91-9a32-4621-be78-87fe9d80b801"
controls width="400"></video> | <video
src="https://github.com/user-attachments/assets/8ee31d6d-5150-4239-a4af-eeca112d56d5"
controls width="400"></video> |

While working on something else I found this weird behaviour in message
editor of agent panel. When model names are too long, the model selector
would expand and push the send button outside the visible area. This
change fixes the flex layout to ensure the send button always remains
accessible while properly truncating long model names.

Closes #ISSUE

Release Notes:

- Fix agent panel model selector layout pushing send button off screen

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
```

## Parents

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

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