Issue #4661: calculate position left of hovercard based on window width

I tried to solve https://github.com/diaspora/diaspora/issues/4661