From b3d58efd741e7c3be8e1134c7749f8b3e9335d9e Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 17 Jul 2021 22:35:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=81=8A=E5=A4=A9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ChatBox/ChatInputBox/index.tsx | 8 +++-- .../ChatBox/ChatMessageList/index.tsx | 2 +- web/src/components/ChatBox/index.tsx | 2 +- web/src/styles/antd/dark.less | 7 ++++ web/src/styles/antd/overwrite.less | 4 +++ web/src/styles/global.less | 32 +++++++++++++++++++ 6 files changed, 51 insertions(+), 4 deletions(-) diff --git a/web/src/components/ChatBox/ChatInputBox/index.tsx b/web/src/components/ChatBox/ChatInputBox/index.tsx index 38ef73dd..9750c3e1 100644 --- a/web/src/components/ChatBox/ChatInputBox/index.tsx +++ b/web/src/components/ChatBox/ChatInputBox/index.tsx @@ -6,8 +6,12 @@ interface ChatInputBoxProps { } export const ChatInputBox: React.FC = React.memo((props) => { return ( -
- props.onSendMsg(e.currentTarget.value)} /> +
+ props.onSendMsg(e.currentTarget.value)} + />
); }); diff --git a/web/src/components/ChatBox/ChatMessageList/index.tsx b/web/src/components/ChatBox/ChatMessageList/index.tsx index c550765e..62a6625a 100644 --- a/web/src/components/ChatBox/ChatMessageList/index.tsx +++ b/web/src/components/ChatBox/ChatMessageList/index.tsx @@ -8,7 +8,7 @@ interface ChatMessageListProps { export const ChatMessageList: React.FC = React.memo( (props) => { return ( -
+
{props.messages.map((message) => ( +