From 9f87e604ca4ffae4df25041ac3e98a081f43af23 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 30 Jun 2014 18:59:54 +0600 Subject: [PATCH] SONAR-5209 Cross project duplications --- .../main/coffee/component-viewer/duplication-popup.coffee | 2 ++ sonar-server/src/main/less/component-viewer.less | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/coffee/component-viewer/duplication-popup.coffee b/sonar-server/src/main/coffee/component-viewer/duplication-popup.coffee index eff49a31c8c..1f975a2619e 100644 --- a/sonar-server/src/main/coffee/component-viewer/duplication-popup.coffee +++ b/sonar-server/src/main/coffee/component-viewer/duplication-popup.coffee @@ -46,5 +46,7 @@ define [ duplications = _.map groupedBlocks, (blocks, fileRef) -> blocks: blocks file: files[fileRef] + duplications = _.sortBy duplications, (d) => + d.file.projectName != @options.main.component.get 'projectName' component: @options.main.component.toJSON() duplications: duplications diff --git a/sonar-server/src/main/less/component-viewer.less b/sonar-server/src/main/less/component-viewer.less index f506d0b7976..98498765de8 100644 --- a/sonar-server/src/main/less/component-viewer.less +++ b/sonar-server/src/main/less/component-viewer.less @@ -231,6 +231,8 @@ .code .scm { line-height: 16px; + padding-top: 0; + padding-bottom: 0; text-align: left; .scm-date { @@ -722,8 +724,7 @@ } .component-viewer-popup-label { - padding: 0 6px; - background-color: @barBackgroundColor; + padding-right: 6px; font-weight: 500; } -- 2.39.5