Selaa lähdekoodia

fix: hide actions when loading

石门 1 vuosi sitten
vanhempi
commit
7a5c35baf3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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>
                 )}
                 )}
                 <div className={styles["chat-message-item"]}>
                 <div className={styles["chat-message-item"]}>
-                  {!isUser && (
+                  {(!isUser && !message.preview) && (
                     <div className={styles["chat-message-top-actions"]}>
                     <div className={styles["chat-message-top-actions"]}>
                       {message.streaming ? (
                       {message.streaming ? (
                         <div
                         <div