From: Revanshu Paliwal Date: Mon, 12 Jun 2023 10:42:15 +0000 (+0200) Subject: SONAR-19174 Showing title for long file path inside duplication popup in code viewer X-Git-Tag: 10.1.0.73491~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6af7276c5587e1bb62551f20df7b046ba803ba58;p=sonarqube.git SONAR-19174 Showing title for long file path inside duplication popup in code viewer --- 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)} - + )}
)}