Skip to content

Commit

Permalink
assistant2: Reduce message editor's maximum height (#22205)
Browse files Browse the repository at this point in the history
This PR reduces the message editor's maximum height to 10 lines, after
which point it will scroll.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Dec 18, 2024
1 parent 7414e91 commit fc00eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/assistant2/src/message_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fc00eaa

Please sign in to comment.