aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2023-03-07 18:30:52 +0100
committerMiodec <[email protected]>2023-03-07 18:30:52 +0100
commit9f9ac13764ab648e2f1e9216c6780d78a9dd750c (patch)
tree8c0225e33060929bbc19ce2c0ee94785f47f3460
parent2d56f2d1f2ea389d336ebde0bf221943475ca793 (diff)
downloadmonkeytype-9f9ac13764ab648e2f1e9216c6780d78a9dd750c.tar.gz
monkeytype-9f9ac13764ab648e2f1e9216c6780d78a9dd750c.zip
adjusting if lines is less than 3
-rw-r--r--frontend/src/ts/test/test-ui.ts3
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;