mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 14:10:59 +08:00
adjusting if lines is less than 3
This commit is contained in:
parent
2d56f2d1f2
commit
9f9ac13764
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ function updateWordsHeight(force = false): void {
|
|||
}
|
||||
wordIndex++;
|
||||
}
|
||||
|
||||
if (lines < 3) wrapperHeight = wrapperHeight * (3 / lines);
|
||||
|
||||
const wordsHeight = (wrapperHeight / 3) * 4;
|
||||
|
||||
finalWordsHeight = wordsHeight;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue