style: 发送中样式

This commit is contained in:
niuwan 2023-04-09 17:55:01 +08:00
parent 72aa2bcad8
commit 1ff5cf9ed1
2 changed files with 10 additions and 1 deletions

View File

@ -622,7 +622,12 @@ export function Chat(props: {
{Locale.Chat.Typing}
</div>
)}
<div className={styles["chat-message-item"]}>
<div
className={`${styles["chat-message-item"]} ${
(message.preview || message.streaming) &&
styles["chat-message-typing"]
}`}
>
{!isUser &&
!(message.preview || message.content.length === 0) && (
<div className={styles["chat-message-top-actions"]}>

View File

@ -259,6 +259,10 @@
line-height: 1.5;
margin-top: 5px;
}
.chat-message-typing {
background-color: #FFEB3B !important;
}
.user-avtar {
height: 30px;