Context menu is shown outside viewport
Checklist:
- [x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- [x] I've included steps to reproduce the bug.
- [x] I've pasted the output of
argocd version.
Describe the bug When clicking the context menu in the app details view, it might show outside of the current viewport. I'm using Chrome on Ubuntu, not sure if that's relevant
To Reproduce
Expected behavior Menu should only be shown inside viewport
Screenshots See comment below
Version 2.13
Logs
I'd like to take this up.
I also noticed that if clicking the "3-dot" button again with the context menu expanded, it moves to inside the viewport. It's very strange.
yes dropdown has issues with repositioning itself relative to the viewport when its parent container is not the document.body. similar issue
#21103
I think this issue is caused by the dropdown's implementation—it hasn't handled asynchronous children correctly. So, I drafted an argo-ui PR to fix this.
Screenshot with more context: