mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-17 22:29:52 +08:00
fix(wordsInput): adjust #wordsInput position to be on the active word for chinese (@NadAlaba) (#6545)
fix part of #6447
This commit is contained in:
parent
b402c3a1a7
commit
3aaf2f65d6
1 changed files with 5 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue