瀏覽代碼

fix: #2149 try to fix ChatAction style on ios mobile

Yidadaa 1 年之前
父節點
當前提交
d5c33a1183
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -310,7 +310,7 @@ function ChatAction(props: {
   }
   }
 
 
   useEffect(() => {
   useEffect(() => {
-    updateWidth();
+    setTimeout(updateWidth, 100);
   }, []);
   }, []);
 
 
   return (
   return (