mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
lol why need to keep checking the text
This commit is contained in:
parent
eb13fe8ce0
commit
bc3e946f61
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function TranslationBlock({
|
||||||
}
|
}
|
||||||
setTranslatedContent(content);
|
setTranslatedContent(content);
|
||||||
setUIState('default');
|
setUIState('default');
|
||||||
if (!mini) {
|
if (!mini && content.trim() !== text.trim()) {
|
||||||
detailsRef.current.open = true;
|
detailsRef.current.open = true;
|
||||||
detailsRef.current.scrollIntoView({
|
detailsRef.current.scrollIntoView({
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
|
|
Loading…
Reference in a new issue