From bc3e946f61ea00f98307f4ca443570be9d36a1c8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 22 Jul 2023 20:48:01 +0800 Subject: [PATCH] lol why need to keep checking the text --- src/components/translation-block.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/translation-block.jsx b/src/components/translation-block.jsx index 5b860eec..cd68f9cb 100644 --- a/src/components/translation-block.jsx +++ b/src/components/translation-block.jsx @@ -81,7 +81,7 @@ function TranslationBlock({ } setTranslatedContent(content); setUIState('default'); - if (!mini) { + if (!mini && content.trim() !== text.trim()) { detailsRef.current.open = true; detailsRef.current.scrollIntoView({ behavior: 'smooth',