1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-03-31 02:51:36 +02:00

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