16543 ineffective menu entry open details view in context menu on small viewports

[``* `#16543` Ineffective menu entry "Open Details View" in context menu on small viewports``](https://www.openproject.org/work_packages/16543)
@myabc Unfortunately, this is a controller, so ``element`` does not exist there or do I miss something?