fix: hide actions when loading

This commit is contained in:
石门 2023-03-28 18:59:03 +08:00
parent 7a5c35baf3
commit 3a3999d73a
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ export function Chat(props: { showSideBar?: () => void }) {
</div> </div>
)} )}
<div className={styles["chat-message-item"]}> <div className={styles["chat-message-item"]}>
{(!isUser && !message.preview) && ( {(!isUser && !(message.preview || message.content.length === 0)) && (
<div className={styles["chat-message-top-actions"]}> <div className={styles["chat-message-top-actions"]}>
{message.streaming ? ( {message.streaming ? (
<div <div