assistant2: Reduce message editor's maximum height (#22205)
Marshall Bowers
created
This PR reduces the message editor's maximum height to 10 lines, after
which point it will scroll.
Release Notes:
- N/A
Change summary
crates/assistant2/src/message_editor.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Detailed changes
@@ -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);