From ac9962b051a034e17cc5cf460fdf180c0e557ef8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 22 Jul 2023 10:10:41 +0800 Subject: [PATCH] Don't show inline translation if has card --- src/components/status.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/status.jsx b/src/components/status.jsx index 7c29bec2..da3a88dc 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -260,6 +260,7 @@ function Status({ !previewMode && !spoilerText && !poll && + !card && !mediaAttachments?.length && contentLength > 0 && contentLength <= INLINE_TRANSLATE_LIMIT @@ -271,6 +272,7 @@ function Status({ previewMode, spoilerText, poll, + card, mediaAttachments, content, ]);