mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 16:26:18 +08:00
fixed zen mode showing only one line
This commit is contained in:
parent
713f680a76
commit
a0b896eb40
|
@ -163,10 +163,6 @@ export function showWords(): void {
|
|||
|
||||
$("#words").html(wordsHTML);
|
||||
|
||||
if (Config.mode === "zen") {
|
||||
$(<Element>document.querySelector(".word")).remove();
|
||||
}
|
||||
|
||||
updateWordsHeight();
|
||||
}
|
||||
|
||||
|
@ -218,6 +214,11 @@ export function updateWordsHeight(): void {
|
|||
$(".outOfFocusWarning").css("line-height", wordHeight * 3 + "px");
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.mode === "zen") {
|
||||
$(<Element>document.querySelector(".word")).remove();
|
||||
}
|
||||
|
||||
updateActiveElement();
|
||||
Caret.updatePosition();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue