fix(VM) context menu position for VMs.#2642
Conversation
WalkthroughThis PR fixes viewport-clamping issues for VM and snapshot context menus. New helper functions adjust dropdown positioning to stay within the viewport, set z-index/overflow CSS, ensure a DOM spacer element, and rebind event handlers. The VM and snapshot context menus switch from fixed ChangesContext Menu Viewport Positioning
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
When selecting a VM to get the context menu if the the icon was at the bottom of the page then the menu would not fully show on the screen with some of the content showing off the page.
This change moves the location of the context menu to be above if close to bottom.
Summary by CodeRabbit
OS-220