lol why need to keep checking the text

This commit is contained in:
Lim Chee Aun 2023-07-22 20:48:01 +08:00
parent eb13fe8ce0
commit bc3e946f61

View file

@ -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',