adjusting if lines is less than 3

This commit is contained in:
Miodec 2023-03-07 18:30:52 +01:00
parent 2d56f2d1f2
commit 9f9ac13764

View file

@ -274,6 +274,9 @@ function updateWordsHeight(force = false): void {
}
wordIndex++;
}
if (lines < 3) wrapperHeight = wrapperHeight * (3 / lines);
const wordsHeight = (wrapperHeight / 3) * 4;
finalWordsHeight = wordsHeight;