From 12b6001d53bf5ac67023a2dd7ee6548e458a4f7d Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 8 Apr 2026 17:05:10 +0800 Subject: [PATCH] fix(ui): make panel history max-height responsive to viewport --- packages/ui/src/panel/Panel.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/panel/Panel.module.css b/packages/ui/src/panel/Panel.module.css index 6863fa7..92e1c1d 100644 --- a/packages/ui/src/panel/Panel.module.css +++ b/packages/ui/src/panel/Panel.module.css @@ -291,7 +291,7 @@ transition: max-height 0.2s; .expanded & { - max-height: 400px; + max-height: min(500px, calc(100vh - 200px - var(--height))); } .historyItem {