Fix hover reposition jank 2
Created by: chrismwendt
- https://github.com/sourcegraph/sourcegraph/pull/34028 Original PR
- https://github.com/sourcegraph/sourcegraph/pull/34206 Revert
- This PR reapplies the original PR with a fix that avoids the bug in the original
Only the "fix" commit needs to be reviewed (and subsequent commits if there are any).
Fixes https://github.com/sourcegraph/sourcegraph/issues/33987
Test plan
Manual + automated tests
App preview:
Check out the client app preview documentation to learn more.