From fdb8456ccdf34d509051ce0cdaec36893c2bff58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:50:25 +0100 Subject: [PATCH] Limit chat input height to 20 lines (#877) * Limit the number of displayed rows in chat input to 20 * affix send button to bottom of chat input --------- Co-authored-by: David L. Qiu --- packages/jupyter-ai/src/components/chat-input.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/jupyter-ai/src/components/chat-input.tsx b/packages/jupyter-ai/src/components/chat-input.tsx index 705b57fd3..6e13b9679 100644 --- a/packages/jupyter-ai/src/components/chat-input.tsx +++ b/packages/jupyter-ai/src/components/chat-input.tsx @@ -280,13 +280,17 @@ export function ChatInput(props: ChatInputProps): JSX.Element { {...params} fullWidth variant="outlined" + maxRows={20} multiline placeholder="Ask Jupyternaut" onKeyDown={handleKeyDown} InputProps={{ ...params.InputProps, endAdornment: ( - + )