From 9f9ac13764ab648e2f1e9216c6780d78a9dd750c Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 7 Mar 2023 18:30:52 +0100 Subject: [PATCH] adjusting if lines is less than 3 --- frontend/src/ts/test/test-ui.ts | 3 +++ 1 file changed, 3 insertions(+) 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;