From 6af7276c5587e1bb62551f20df7b046ba803ba58 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Mon, 12 Jun 2023 12:42:15 +0200 Subject: [PATCH] SONAR-19174 Showing title for long file path inside duplication popup in code viewer --- .../SourceViewer/components/DuplicationPopup.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/DuplicationPopup.tsx b/server/sonar-web/src/main/js/components/SourceViewer/components/DuplicationPopup.tsx index ca1c33e6722..8c0e256502c 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/components/DuplicationPopup.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/components/DuplicationPopup.tsx @@ -123,12 +123,15 @@ export default class DuplicationPopup extends PureComponent { <> {duplicationHeader} {duplications.map((duplication) => ( -
+
{this.isDifferentComponent(duplication.file, this.props.sourceViewerFile) && (
- + {duplication.file.projectName}
@@ -138,10 +141,15 @@ export default class DuplicationPopup extends PureComponent {
{this.renderDuplication( duplication.file, - <> + {collapsedDirFromPath(duplication.file.name)} {fileFromPath(duplication.file.name)} - + )}
)} -- 2.39.5