Browse Source

fix: #2149 try to fix chat action button style

Yidadaa 1 year ago
parent
commit
5b1d45c1a9
1 changed files with 0 additions and 10 deletions
  1. 0 10
      app/components/chat.tsx

+ 0 - 10
app/components/chat.tsx

@@ -309,16 +309,6 @@ function ChatAction(props: {
     });
   }
 
-  useEffect(() => {
-    const onClick = () => setTimeout(updateWidth, 10);
-    onClick();
-
-    window.addEventListener("click", onClick);
-    return () => {
-      window.removeEventListener("click", onClick);
-    };
-  }, []);
-
   return (
     <div
       className={`${styles["chat-input-action"]} clickable`}