assistant2: Reduce message editor's maximum height (#22205)

This PR reduces the message editor's maximum height to 10 lines, after
which point it will scroll.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-12-18 16:11:31 -05:00 committed by GitHub
parent 7414e91a85
commit fc00eaa161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ impl MessageEditor {
let inline_context_picker_menu_handle = PopoverMenuHandle::default();
let editor = cx.new_view(|cx| {
let mut editor = Editor::auto_height(80, cx);
let mut editor = Editor::auto_height(10, cx);
editor.set_placeholder_text("Ask anything, @ to add context", cx);
editor.set_show_indent_guides(false, cx);