From a27d57b2ff1f757734916bab2312bddab9e5c663 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 12 Jun 2026 01:21:54 +0200 Subject: [PATCH] fix(ui): keep dropdown action menus inside the viewport (#5133) The inbound/client context menus hold a dozen items; when antd flips a tall menu upward near the screen edge it overflowed the top of the viewport, hiding the first entries. Cap the overlay height and scroll. --- frontend/src/styles/page-shell.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/styles/page-shell.css b/frontend/src/styles/page-shell.css index d8c64e93c..4a40b27f1 100644 --- a/frontend/src/styles/page-shell.css +++ b/frontend/src/styles/page-shell.css @@ -89,6 +89,13 @@ min-height: calc(100vh - 120px); } +/* Tall action menus (e.g. the inbound/client context menus) must stay inside + the viewport even when antd flips them upward near the screen edge. */ +.ant-dropdown .ant-dropdown-menu { + max-height: calc(100vh - 32px); + overflow-y: auto; +} + .ant-dropdown-menu-item:not(.ant-dropdown-menu-item-disabled):not(.ant-dropdown-menu-item-danger):hover, .ant-dropdown-menu-item:not(.ant-dropdown-menu-item-disabled):not(.ant-dropdown-menu-item-danger):hover .ant-dropdown-menu-title-content, .ant-dropdown-menu-item:not(.ant-dropdown-menu-item-disabled):not(.ant-dropdown-menu-item-danger):hover > .anticon {