From 7850c31cadc099109026125afc748408d917a25a Mon Sep 17 00:00:00 2001 From: ayato <58212796+ayaaop@users.noreply.github.com> Date: Tue, 11 Feb 2025 21:32:02 +0500 Subject: [PATCH] fix(messagebox): make dialogue content scrollable and remove `height` from dialogue header and action boxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sometimes dialogue boxes get too long and end up going off the screen, making the content impossible to see. This change fixes that by allowing the dialogue content to scroll. It also removes some height restrictions from the header and action sections since they didn’t seem to serve a clear purpose (to me) and might have been causing layout issues. --- Web/static/css/dialog.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/static/css/dialog.css b/Web/static/css/dialog.css index 11c1ddb8..44892fb2 100644 --- a/Web/static/css/dialog.css +++ b/Web/static/css/dialog.css @@ -38,7 +38,6 @@ body.dimmed > .dimmer #absolute_territory { } .ovk-diag-head { - height: 25%; padding: 5px; background-color: #757575; border-bottom: 1px solid #3e3e3e; @@ -49,11 +48,12 @@ body.dimmed > .dimmer #absolute_territory { .ovk-diag-body { padding: 20px; + overflow-y: auto; + max-height: 80vh } .ovk-diag-action { padding: 10px; - height: 25%; background-color: #d4d4d4; text-align: right; }