From 3aaf2f65d6a4ea1efd7cd6279f4d0f365be6c7f2 Mon Sep 17 00:00:00 2001 From: Nad Alaba <37968805+NadAlaba@users.noreply.github.com> Date: Mon, 12 May 2025 15:11:46 +0300 Subject: [PATCH] fix(wordsInput): adjust #wordsInput position to be on the active word for chinese (@NadAlaba) (#6545) fix part of #6447 --- frontend/src/ts/test/test-ui.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index 11e7a498b..719b22890 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -467,7 +467,11 @@ export async function updateWordsInputPosition(initial = false): Promise { 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";