fixed zen mode showing only one line

This commit is contained in:
Miodec 2022-09-01 14:47:54 +02:00
parent 713f680a76
commit a0b896eb40

View file

@ -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();
}