# agent: Improve layout shift on previous message editor \(\#33055\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b89ddf3a6e41d04cb0c9a49d0afe309bf82383ca

Requested commit: b89ddf3a6e41d04cb0c9a49d0afe309bf82383ca

Commit: b89ddf3a6e41d04cb0c9a49d0afe309bf82383ca

Tree: 17df545bb1da410fd9e60fc06160ea96346d3396

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Improve layout shift on previous message editor (#33055)

Follow up to https://github.com/zed-industries/zed/pull/32765.

This PR creates a slot for the `message_editor::create_editor` to allow
using different values for min and max lines. In practice, the panel's
main editor now has a minimum of 4 lines, whereas the previous message
editor has just one. This makes the layout shift when clicking on a
previous message to edit it much smaller.

Release Notes:

- agent: Improved layout shift when clicking to edit a previous sent
message.
```

## Parents

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

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