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};