Fix scroll to hash when blob blame enabled
What does this MR do and why?
Fixes the scroll to hash when blame is enabled for a blob
Screenshots or screen recordings
Before | After |
---|---|
Does not auto-scroll to the selected line | Auto-scrolls to the selected line |
![]() |
![]() |
How to set up and validate locally
- Enable the
graphql_git_blame
,blob_blame_info
andhighlight_js_worker
feature flags - Open a
.json
file via the repository files browser - Click the
Blame
button in the blob header - Select a line number
- Refresh the page
- The page should automatically scroll to the selected line
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #425267 (closed)
Edited by Jacques Erasmus