Rapid flashing when scrolling an MR while the right sidebar is expanded if the viewport is smaller than lg
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=575709)
</details>
<!--IssueSummary end-->
Reported by @clavimoniere on Sept 30th, 2025 here: https://gitlab.com/gitlab-org/gitlab/-/issues/567702#note_2789690679
Something pretty weird goes on when you try to scroll an MR while the right sidebar is expanded if the viewport is smaller than `lg`.
<details>
<summary>
**Screen Capture** (trigger warning: rapid flashing)
</summary>

</details>
issue