Browse Source

fix: hide actions when loading

石门 1 year ago
parent
commit
3a3999d73a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/components/home.tsx

+ 1 - 1
app/components/home.tsx

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