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} {Locale.Chat.Typing}
</div> </div>
)} )}
<div className={styles["chat-message-item"]}> <div
className={`${styles["chat-message-item"]} ${
(message.preview || message.streaming) &&
styles["chat-message-typing"]
}`}
>
{!isUser && {!isUser &&
!(message.preview || message.content.length === 0) && ( !(message.preview || message.content.length === 0) && (
<div className={styles["chat-message-top-actions"]}> <div className={styles["chat-message-top-actions"]}>

View File

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