From f36c8f7adcb91963a0bd11906735ac04ec8fe104 Mon Sep 17 00:00:00 2001 From: taher <8665427+nullhook@users.noreply.github.com> Date: Wed, 27 Dec 2023 06:22:29 -0800 Subject: [PATCH 1/5] aichat: input is growable (#21124) --- .../page/components/input_box/index.tsx | 64 +++++++++-------- .../components/input_box/style.module.scss | 69 +++++++++++-------- 2 files changed, 75 insertions(+), 58 deletions(-) diff --git a/components/ai_chat/resources/page/components/input_box/index.tsx b/components/ai_chat/resources/page/components/input_box/index.tsx index 65a4e49f61e1..59f736e67cf5 100644 --- a/components/ai_chat/resources/page/components/input_box/index.tsx +++ b/components/ai_chat/resources/page/components/input_box/index.tsx @@ -8,6 +8,7 @@ import * as React from 'react' import classnames from 'classnames' import { getLocale } from '$web-common/locale' import Icon from '@brave/leo/react/icon' +import Button from '@brave/leo/react/button' import styles from './style.module.scss' import DataContext from '../../state/context' @@ -36,7 +37,7 @@ function InputBox () { setInputText('') } - const handleSubmit = (e: React.MouseEvent) => { + const handleSubmit = (e: CustomEvent) => { e.preventDefault() submitInputTextToAPI() } @@ -52,37 +53,40 @@ function InputBox () { } return ( -
-
-
-