From 5c867bba0a2ece6427d19883cbf4927b5a7dcc6e Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 30 Dec 2025 14:14:54 +0800 Subject: [PATCH] * [refac] Optimize page height when upgrading. --- module/upgrade/ui/confirm.html.php | 4 ++-- module/upgrade/ui/execute.html.php | 2 +- module/upgrade/ui/license.html.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module/upgrade/ui/confirm.html.php b/module/upgrade/ui/confirm.html.php index b25b5eac97..7649ed6473 100644 --- a/module/upgrade/ui/confirm.html.php +++ b/module/upgrade/ui/confirm.html.php @@ -26,8 +26,8 @@ div ), div ( - setClass('pre rounded-md bg-gray-100 overflow-x-hidden overflow-y-scroll px-8 py-6 h-full'), - setStyle('height', 'calc(100% - 5rem)'), + setClass('pre rounded-md bg-gray-100 overflow-x-hidden overflow-y-scroll px-8 py-6'), + setStyle(['max-height' => 'calc(100% - 5rem)']), $confirm ), div diff --git a/module/upgrade/ui/execute.html.php b/module/upgrade/ui/execute.html.php index 08eaeaa5d2..b326d3069f 100644 --- a/module/upgrade/ui/execute.html.php +++ b/module/upgrade/ui/execute.html.php @@ -102,7 +102,7 @@ div row ( setClass('bg-gray-100 gap-2 p-2'), - setStyle(['height' => 'calc(100% - 4rem)']), + setStyle(['max-height' => 'calc(100% - 4rem)']), col ( setClass('bg-white rounded-md justify-between gap-4 p-4 w-64 h-full'), diff --git a/module/upgrade/ui/license.html.php b/module/upgrade/ui/license.html.php index 98d19f0039..9fb0725c53 100644 --- a/module/upgrade/ui/license.html.php +++ b/module/upgrade/ui/license.html.php @@ -26,8 +26,8 @@ div ), div ( - setClass('pre rounded-md bg-gray-100 overflow-x-hidden overflow-y-scroll px-8 py-6 h-full'), - setStyle('height', 'calc(100% - 8rem)'), + setClass('pre rounded-md bg-gray-100 overflow-x-hidden overflow-y-scroll px-8 py-6'), + setStyle(['max-height' => 'calc(100% - 5rem)']), $license ), checkbox