From b4703e44beea24eaaf6af738ba3391fb17398a96 Mon Sep 17 00:00:00 2001 From: IM23a-spirgif Date: Tue, 27 May 2025 20:54:50 +0200 Subject: [PATCH] Adjusted modal styling and improve responsiveness. --- static/style.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index ae943f3..ed4ec88 100644 --- a/static/style.css +++ b/static/style.css @@ -499,11 +499,13 @@ body.menu-open { left: 0; width: 100%; height: 100%; - padding: 40px 0; + padding: 20px 0; background: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; z-index: 2500; + inset: 0; + overflow-y: auto; } #weapon-form.show { @@ -518,6 +520,8 @@ body.menu-open { max-width: 480px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); position: relative; + max-height: calc(100vh - 40px); + overflow-y: auto; } #weapon-form h2 {