fix(wordsInput): adjust #wordsInput position to be on the active word for chinese (@NadAlaba) (#6545)

fix part of #6447
This commit is contained in:
Nad Alaba 2025-05-12 15:11:46 +03:00 committed by GitHub
parent b402c3a1a7
commit 3aaf2f65d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,11 @@ export async function updateWordsInputPosition(initial = false): Promise<void> {
el.style.width = activeWord.offsetWidth + "px";
}
if (initial && Config.tapeMode === "off") {
if (
initial &&
!shouldUpdateWordsInputPosition() &&
Config.tapeMode === "off"
) {
el.style.top = targetTop + letterHeight + activeWordMargin + 4 + "px";
} else {
el.style.top = targetTop + "px";