diff options
author | Miodec <[email protected]> | 2023-03-07 18:30:52 +0100 |
---|---|---|
committer | Miodec <[email protected]> | 2023-03-07 18:30:52 +0100 |
commit | 9f9ac13764ab648e2f1e9216c6780d78a9dd750c (patch) | |
tree | 8c0225e33060929bbc19ce2c0ee94785f47f3460 | |
parent | 2d56f2d1f2ea389d336ebde0bf221943475ca793 (diff) | |
download | monkeytype-9f9ac13764ab648e2f1e9216c6780d78a9dd750c.tar.gz monkeytype-9f9ac13764ab648e2f1e9216c6780d78a9dd750c.zip |
adjusting if lines is less than 3
-rw-r--r-- | frontend/src/ts/test/test-ui.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/ts/test/test-ui.ts b/frontend/src/ts/test/test-ui.ts index 82703f241..1c5c882f2 100644 --- a/frontend/src/ts/test/test-ui.ts +++ b/frontend/src/ts/test/test-ui.ts @@ -274,6 +274,9 @@ function updateWordsHeight(force = false): void { } wordIndex++; } + + if (lines < 3) wrapperHeight = wrapperHeight * (3 / lines); + const wordsHeight = (wrapperHeight / 3) * 4; finalWordsHeight = wordsHeight; |