From ef1bb49066f099aef297ffd3b5ea0dbd5bb51569 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Tue, 19 May 2026 07:46:47 +0800 Subject: [PATCH] fix(calendar): limit popup height (#9492) --- .../plugin-calendar/src/client/calendar/global.style.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts index 1bd5e958d25..7072f29d33c 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/calendar/global.style.ts @@ -13,6 +13,8 @@ const GlobalStyle = createGlobalStyle` .rbc-overlay { position: absolute; z-index: 50; + max-height: ${({ theme }) => `min(360px, calc(100vh - ${theme.marginXL * 2}px))`}; + overflow-y: auto; margin-top: 5px; border-radius: ${({ theme }) => `${theme.borderRadius}px`}; background-color: ${({ theme }) => theme.colorBgElevated};