From 7a5c35baf3e5102c6cc9859589a10af6c911480c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=9F=B3=E9=97=A8?= <xijieyin@gmail.com>
Date: Tue, 28 Mar 2023 18:48:03 +0800
Subject: [PATCH 1/4] fix: hide actions when loading

---
 app/components/home.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/components/home.tsx b/app/components/home.tsx
index 2526f2325..696061690 100644
--- a/app/components/home.tsx
+++ b/app/components/home.tsx
@@ -314,7 +314,7 @@ export function Chat(props: { showSideBar?: () => void }) {
                   </div>
                 )}
                 <div className={styles["chat-message-item"]}>
-                  {!isUser && (
+                  {(!isUser && !message.preview) && (
                     <div className={styles["chat-message-top-actions"]}>
                       {message.streaming ? (
                         <div

From 3a3999d73ae2939c3e397c3b5ffa403e6cb2ed59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=9F=B3=E9=97=A8?= <xijieyin@gmail.com>
Date: Tue, 28 Mar 2023 18:59:03 +0800
Subject: [PATCH 2/4] fix: hide actions when loading

---
 app/components/home.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/components/home.tsx b/app/components/home.tsx
index 696061690..7123d5d50 100644
--- a/app/components/home.tsx
+++ b/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

From 48dc2c2295662677a8b3ce6e5d238c68b42f7fd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=9F=B3=E9=97=A8?= <xijieyin@gmail.com>
Date: Tue, 28 Mar 2023 19:38:18 +0800
Subject: [PATCH 3/4] fix: minor fix

---
 app/components/home.module.scss | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/components/home.module.scss b/app/components/home.module.scss
index 730c05ef2..6fb44dea4 100644
--- a/app/components/home.module.scss
+++ b/app/components/home.module.scss
@@ -292,6 +292,7 @@
   position: absolute;
   right: 20px;
   top: -26px;
+  left: 110px;
   transition: all ease 0.3s;
   opacity: 0;
   pointer-events: none;
@@ -302,6 +303,7 @@
   .chat-message-top-action {
     opacity: 0.5;
     color: var(--black);
+    white-space: nowrap;
     cursor: pointer;
 
     &:hover {

From 1c017b8ee9119f0829fe59fc8ef0867d47ab21d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=9F=B3=E9=97=A8?= <xijieyin@gmail.com>
Date: Tue, 28 Mar 2023 20:14:44 +0800
Subject: [PATCH 4/4] fix: minor fix

---
 app/components/home.module.scss | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/components/home.module.scss b/app/components/home.module.scss
index 6fb44dea4..8b26c6f74 100644
--- a/app/components/home.module.scss
+++ b/app/components/home.module.scss
@@ -292,7 +292,7 @@
   position: absolute;
   right: 20px;
   top: -26px;
-  left: 110px;
+  left: 100px;
   transition: all ease 0.3s;
   opacity: 0;
   pointer-events: none;