diff --git a/packages/web/src/components/voice/VoiceModContextMenu.tsx b/packages/web/src/components/voice/VoiceModContextMenu.tsx index 1f4e7beb..11d410ac 100644 --- a/packages/web/src/components/voice/VoiceModContextMenu.tsx +++ b/packages/web/src/components/voice/VoiceModContextMenu.tsx @@ -149,6 +149,10 @@ function MoveToSubmenu({ channels, onMove, btnClass, btnStyle }: MoveToSubmenuPr flyout.style.left = `${left}px`; flyout.style.top = `${top}px`; + + const availableHeight = window.innerHeight - top - 8; + const maxHeight = Math.max(availableHeight, 120); + flyout.style.maxHeight = `${maxHeight}px`; }, [open]); return ( @@ -170,7 +174,7 @@ function MoveToSubmenu({ channels, onMove, btnClass, btnStyle }: MoveToSubmenuPr {open && ReactDOM.createPortal(