From 83cae7ede3bba7e940bb5b04f9d7d293ae5f64fe Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Wed, 31 May 2023 11:21:44 +0800 Subject: [PATCH] refactor: other file message UI --- src/components/FileMessage/OtherFileMessage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FileMessage/OtherFileMessage.tsx b/src/components/FileMessage/OtherFileMessage.tsx index 53c94cf5..f866953e 100644 --- a/src/components/FileMessage/OtherFileMessage.tsx +++ b/src/components/FileMessage/OtherFileMessage.tsx @@ -42,7 +42,7 @@ const OtherFileMessage = ({ handleCancel }: Props) => { const [error, setError] = useState(false); - const icon = getFileIcon(content_type, name, "w-9 h-auto"); + const icon = getFileIcon(content_type, name, "w-9 shrink-0 h-auto"); useEffect(() => { if (content) { fetch(content) @@ -62,12 +62,12 @@ const OtherFileMessage = ({ return (
-
+
{icon}