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)
@hschink I'm not fond of hard coding HTML ids directly into directives. Can you not a `find` scoped to the current `element`? e.g. `element.find('li.open')`