From a0c13c5457da1ab550efd2208ea9029f961567c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rokas=20Leonavi=C4=8Dius?= <101990229+fraxxio@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:54:31 +0300 Subject: [PATCH] Fix error-modal filling up the whole screen (#1298) ## Description: Fixes https://github.com/openfrontio/OpenFrontIO/issues/1279 Now text element is limited to max height of 400px. https://github.com/user-attachments/assets/7b95a105-f329-4f8c-b3a5-1a69f29d189d ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: fraxx. --- src/client/styles.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/styles.css b/src/client/styles.css index dba13d5d7..e3bc2ab11 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -483,6 +483,7 @@ label.option-card:hover { overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; + max-height: 400px; } #error-modal button.copy-btn {