Scrolling issue when clicking in a line number in a MR
Problem
When reviewing code in the changes tab in the MR, if clicking on a line number, it disappears under the header. If we fix how the offset is calculated, we could fix this issue, but during our Slack conversations here, we concluded that there is no value for the user in scrolling the line to the top of the page when clicked; it's more disruptive than helpful.
Kapture 2024-01-29 at 10.26.16.mp4
This issue was posted on Slack channel #is-this-know
Solution
Remove all scrolling anchor behaviour and only highlight the line clicked by the user.
Edited by Alex Fracazo