Bladeren bron

fix: #2149 try to fix chat action button style

Yidadaa 1 jaar geleden
bovenliggende
commit
5b1d45c1a9
1 gewijzigde bestanden met toevoegingen van 0 en 10 verwijderingen
  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`}