From 53674ef6c1bd7b002102b5b14b4fcb723f8888aa Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Fri, 6 Oct 2023 16:25:02 +0200 Subject: [PATCH] SONAR-20464 Fixing scrolling issue inside code page --- .../src/main/js/apps/code/components/SourceViewerWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/code/components/SourceViewerWrapper.tsx b/server/sonar-web/src/main/js/apps/code/components/SourceViewerWrapper.tsx index 652a41f6837..392ab828437 100644 --- a/server/sonar-web/src/main/js/apps/code/components/SourceViewerWrapper.tsx +++ b/server/sonar-web/src/main/js/apps/code/components/SourceViewerWrapper.tsx @@ -38,7 +38,7 @@ function SourceViewerWrapper(props: SourceViewerWrapperProps) { const handleLoaded = React.useCallback(() => { if (line) { - const row = document.querySelector(`.source-line[data-line-number="${line}"]`); + const row = document.querySelector(`.it__source-line-code[data-line-number="${line}"]`); if (row) { row.scrollIntoView({ block: 'center' }); } -- 2.39.5