From 504918a289453a5d86df10b3c65112acb5958151 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Thu, 5 Dec 2024 01:24:53 +0800 Subject: [PATCH] Fix some possible issue may happen in future --- module/webroot/styles.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/webroot/styles.css b/module/webroot/styles.css index f7efe6e..a6106c0 100644 --- a/module/webroot/styles.css +++ b/module/webroot/styles.css @@ -69,6 +69,8 @@ body { border-radius: 8px; opacity: 0; visibility: hidden; + max-height: calc(100vh - 50px); + overflow-y: auto; transform: translateY(-10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; } @@ -386,7 +388,6 @@ body { z-index: 1000; } - .search-input { position: absolute; border: none; @@ -459,6 +460,8 @@ body { transform: translateX(120%); transition: transform 0.2s ease; width: auto; + max-height: calc(100vh - 120px); + overflow-y: auto; white-space: nowrap; }